首页 > 解决方案 > cURL 返回 404 但浏览器 200 正常

问题描述

我尝试从远程服务器上的页面获取 html 页面内容。但是,当我通过 php 脚本或在服务器 (Debian) 的命令行上使用 cURL 时,远程服务器的任何 url 都会返回 404 错误。但是,如果我将此网址粘贴到我的浏览器上,它会正确返回包含所有内容的页面...为什么?... :-( 网址示例:https ://www.neptunestore.eu/fra/neptune-systems-module -de-surveillance-des-fluides.html

标签: phpcurl

解决方案


我在浏览器中收到带有此消息的 404 There was no 404 CMS page configured or found.。这个页面似乎有问题。


推荐阅读