curl-library
blogspot redirect & 404
Date: Mon, 19 Sep 2011 19:58:10 -0700
My webbrowser (which uses curl) does not seem to be able to navigate
to blogspot.com (404). I have tried the curl command line tool and got
the same response.
Problem seems to be the redirect url (//www.blogger.com/home). Is this
a bug or am I doing something wrong? Also is it possible to interfere
and modify the url before the redirect GET call?
Thanks
Levent
# curl --max-redirs 10 -L -v -g http://www.blogspot.com
> GET / HTTP/1.1
> User-Agent: curl/7.21.3 (mipsel-unknown-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o
> Host: www.blogspot.com
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Content-Type: text/html; charset=UTF-8
< Location: http://www.blogger.com
< Date: Tue, 20 Sep 2011 02:43:22 GMT
< Expires: Tue, 20 Sep 2011 02:43:22 GMT
< Cache-Control: private, max-age=0
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Server: GSE
< Transfer-Encoding: chunked
<
> GET / HTTP/1.1
> User-Agent: curl/7.21.3 (mipsel-unknown-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o
> Host: www.blogger.com
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Content-Type: text/html; charset=UTF-8
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: Fri, 01 Jan 1990 00:00:00 GMT
< Date: Tue, 20 Sep 2011 02:43:22 GMT
< Location: //www.blogger.com/home
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Server: GSE
< Transfer-Encoding: chunked
<
> GET //www.blogger.com/home HTTP/1.1
> User-Agent: curl/7.21.3 (mipsel-unknown-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o
> Host: www.blogger.com
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: Fri, 01 Jan 1990 00:00:00 GMT
< Date: Tue, 20 Sep 2011 02:43:22 GMT
< Content-Type: text/html; charset=UTF-8
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Server: GSE
< Transfer-Encoding: chunked
<
<HTML>
<HEAD>
<TITLE>Not Found</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Not Found</H1>
<H2>Error 404</H2>
</BODY>
</HTML>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-20