Reputation: 665
I've been testing a small app I've written that basically does a http HEAD request to check whether a page exists, redirects etc. I've noticed that some pages respond differently to HEAD than GET requests. For example:
curl -I http://www.youtube.com/bbcpersian
returns a 404. It's definitely there. Some (quite major) sites even return 500 errors in response to a HEAD - which I'm guessing isn't deliberate.
So my questions are:
While the number of pages that behave like this is small in % terms each false positive is ultimately manually investigated which results in a lot of wasted effort.
Upvotes: 3
Views: 2394
Reputation: 11
The URL you are trying:
http://www.youtube.com/bbcpersian
is not the correct URL and thus it gives 404.
The correct URL is:
https://www.youtube.com/user/BBCPersian
and it gives 200.
Upvotes: 1
Reputation: 665
After some time has elapsed and much more investigation I can answer my own questions:
Upvotes: 9