curl-library
Fetching HEAD 404, Fetching BODY 200
From: Viktor Molnar <viktor.molnar_at_inbox.com>
Date: Wed, 21 Jul 2010 03:32:56 -0800
I wrote a script to check, if some websites are OK.
It's done via fetching HEAD from HTTP.
But I found website, where CURL HEAD is returning 404 status code,
but if I try to fetch HEAD with BODY, status code is 200.
Also, wget is working fine, just try these two commands on this website:
curl -I http://www.youtube.com/ESETSK
wget -S http://www.youtube.com/ESETSK
I was using also user-agent option, but it was no difference.
Thank you for help,
Viktor
Free 3D Earth Screensaver
Watch the Earth right on your desktop! Check it out at www.inbox.com/earth
Date: Wed, 21 Jul 2010 03:32:56 -0800
I wrote a script to check, if some websites are OK.
It's done via fetching HEAD from HTTP.
But I found website, where CURL HEAD is returning 404 status code,
but if I try to fetch HEAD with BODY, status code is 200.
Also, wget is working fine, just try these two commands on this website:
curl -I http://www.youtube.com/ESETSK
wget -S http://www.youtube.com/ESETSK
I was using also user-agent option, but it was no difference.
Thank you for help,
Viktor
Free 3D Earth Screensaver
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-07-21