简体   繁体   English

cURL 返回 404 但浏览器 200 ok

[英]cURL returns 404 but browser 200 ok

I try to get html page content from a page on a remote server.我尝试从远程服务器上的页面获取 html 页面内容。 But when I use cURL via a php script or on the command line from the server (Debian), a 404 error is returned for any url of the remote server.但是,当我通过 php 脚本或在服务器 (Debian) 的命令行上使用 cURL 时,远程服务器的任何 url 都会返回 404 错误。 But if I paste this url on my browser, it returns the page correctly with all content... Why?... :-( Example of url : https://www.neptunestore.eu/fra/neptune-systems-module-de-surveillance-des-fluides.html但是,如果我将此 url 粘贴到我的浏览器上,它会正确返回包含所有内容的页面...为什么?... :-( url 示例: https : //www.neptunestore.eu/fra/neptune-systems-module -de-surveillance-des-fluides.html

I receive 404 in browser with this message There was no 404 CMS page configured or found.我在浏览器中收到 404 并显示此消息There was no 404 CMS page configured or found. . . It seems to something wrong with this page.这个页面似乎有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM