php - cURL 返回 404 但浏览器 200 正常
问题描述
我尝试从远程服务器上的页面获取 html 页面内容。但是,当我通过 php 脚本或在服务器 (Debian) 的命令行上使用 cURL 时,远程服务器的任何 url 都会返回 404 错误。但是,如果我将此网址粘贴到我的浏览器上,它会正确返回包含所有内容的页面...为什么?... :-( 网址示例:https ://www.neptunestore.eu/fra/neptune-systems-module -de-surveillance-des-fluides.html
解决方案
我在浏览器中收到带有此消息的 404 There was no 404 CMS page configured or found.
。这个页面似乎有问题。
推荐阅读
- identityserver4 - 仅在 IdentityServer4 中注销客户端
- java - DataflowRunner 需要 gcpTempLocation,但无法从 PipelineOptions 检索值
- c++ - 将一个数组传递给所有工作项都相同的内核
- python - 麻烦 Webscraping 寻求 alpha
- lwjgl - 如何在 GLFW 中更改 PS4 控制器灯条颜色(最好是 Java LWJGL 方法)
- java - 在@DataJpaTest NoSuchBeanDefinitionException 因为@Value 的情况下
- python - 在 pc 上运行良好的 opencv 代码在 mac 上无法运行
- reactjs - 为什么 App.js 中的状态更改会导致组件重新挂载?
- php - 如何在谷歌地方获得星级评分
- javascript - Three.js - 在缩放时保持对象静态