Using CURL, 404 is returned, but can be opened in a browser. what is the problem?

Source: Internet
Author: User
Using CURL, 404 is returned, but can be opened in a browser. what is the problem? For example, webpage: Ghost. After reading this, there is no redirection. what is going on? how can I set curl?


Reply to discussion (solution)

Address bar http://movie.douban.com/subject/3878157/

Er... the page you want to access does not exist.

> Return to the home page in 1 second

Address bar http://movie.douban.com/subject/3878157/

Er... the page you want to access does not exist.

> One second later, I returned to the home page and opened the browser. it's the movie "electric shock".

Are you using the browser cache?


Address bar http://movie.douban.com/subject/3878157/

Er... the page you want to access does not exist.

> One second later, I returned to the home page and opened the browser. it's the movie "electric shock".
It does not exist. return to the home page



Address bar http://movie.douban.com/subject/3878157/

Er... the page you want to access does not exist.

> One second later, I returned to the home page and opened the browser. it's the movie "electric shock".
It does not exist. I returned to the homepage and fainted. how can I open it. When you use curl to open 50 webpages consecutively, 404 is returned. when you return 404, you can add a webpage link to the webpage and open any webpage without any problem. Does curl cache the web page, and it is 404 in the new browser!






Address bar http://movie.douban.com/subject/3878157/

Er... the page you want to access does not exist.

> One second later, I returned to the home page and opened the browser. it's the movie "electric shock".
It does not exist. I returned to the homepage and fainted. how can I open it. When you use curl to open 50 webpages consecutively, 404 is returned. when you return 404, you can add a webpage link to the webpage and open any webpage without any problem. Does curl cache the web page, and it is 404 in the new browser!
Curl won't be cached. you should look for program problems.





Address bar http://movie.douban.com/subject/3878157/

Er... the page you want to access does not exist.

> One second later, I returned to the home page and opened the browser. it's the movie "electric shock".
It does not exist. I returned to the homepage and fainted. how can I open it. When you use curl to open 50 webpages consecutively, 404 is returned. when you return 404, you can add a webpage link to the webpage and open any webpage without any problem. Does curl cache the web page, and it is 404 in the new browser!

Curl won't be cached. you should look for program problems.




I am wrong. it is possible
Add CURLOPT_FRESH_CONNECT. try to force a new connection.








Address bar http://movie.douban.com/subject/3878157/

Er... the page you want to access does not exist.

> One second later, I returned to the home page and opened the browser. it's the movie "electric shock".
It does not exist. I returned to the homepage and fainted. how can I open it. When you use curl to open 50 webpages consecutively, 404 is returned. when you return 404, you can add a webpage link to the webpage and open any webpage without any problem. Does curl cache the web page, and it is 404 in the new browser!

Curl won't be cached. you should look for program problems.




I am wrong. it is possible
You can add CURLOPT_FRESH_CONNECT to try to force new connections or not. use firefox to create a private browser window. after the program is executed, click the original link or 404 to return to the home page. firefox generally executes the program in the window, although curl still returns 404, it is okay to open the original link. Are there restrictions on these movies?

Non-users cannot.
The thief entered from the window.

Non-users cannot.
It's a thief entering the window. Yes, some movies must be logged in to view them, and they are all pornographic, violent, and so on. This is the reason, NND.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.