curl-users
[ curl-Bugs-508235 ] Relative redirects not working - 7.9.3
Date: Thu, 24 Jan 2002 16:45:14 -0800
Bugs item #508235, was opened at 2002-01-24 16:45
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=508235&group_id=976
Category: http
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: Relative redirects not working - 7.9.3
Initial Comment:
Looks like something is wrong with redirects in
7.9.3, compared to 7.9.2. For example:
curl -i -v -m 5 -L localhost/frank/home.py/page
Under 7.9.2, it correctly redirects:
--------------------------------------------------
* Connected to localhost.hiwaay.net (127.0.0.1)
> GET /frank/home.py/page HTTP/1.1
User-Agent: curl/7.9.2 (i686-pc-linux-gnu) libcurl
7.9.2 (OpenSSL 0.9.6c)
Host: localhost
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, */*
* Connection #0 left intact
* Follows Location: to new URL:
'http://localhost/frank/home.py/browser_check_page2?sid=jQ8xROuCa46RBquknsJjtIA0r76UzC'
* Re-using existing connection! (#0)
* Connected to localhost.hiwaay.net (127.0.0.1)
> GET
/frank/home.py/browser_check_page2?sid=jQ8xROuCa46RBquknsJjtIA0r76UzC
HTTP/1.1
User-Agent: curl/7.9.2 (i686-pc-linux-gnu) libcurl
7.9.2 (OpenSSL 0.9.6c)
Host: localhost
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, */*
Cookie: sid=jQ8xROuCa46RBquknsJjtIA0r76UzC
* Follow to new URL: /frank/home.py/page
* Connection #0 left intact
* Follows Location: to new URL:
'http://localhost/frank/home.py/page'
* Re-using existing connection! (#0)
* Connected to localhost.hiwaay.net (127.0.0.1)
> GET /frank/home.py/page HTTP/1.1
User-Agent: curl/7.9.2 (i686-pc-linux-gnu) libcurl
7.9.2 (OpenSSL 0.9.6c)
Host: localhost
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, */*
Cookie: sid=jQ8xROuCa46RBquknsJjtIA0r76UzC
HTTP/1.1 301 Moved Permanently
Date: Fri, 25 Jan 2002 00:32:14 GMT
Server: Apache/1.3.22 (Unix) mod_mp3/0.33
mod_python/2.7.6 Python/2.1.2 PHP/4.1.1 mod_perl/1.26
Set-Cookie: sid=jQ8xROuCa46RBquknsJjtIA0r76UzC
location:
browser_check_page2?sid=jQ8xROuCa46RBquknsJjtIA0r76UzC
Transfer-Encoding: chunked
Content-Type: text/plain
HTTP/1.1 301 Moved Permanently
Date: Fri, 25 Jan 2002 00:32:14 GMT
Server: Apache/1.3.22 (Unix) mod_mp3/0.33
mod_python/2.7.6 Python/2.1.2 PHP/4.1.1 mod_perl/1.26
location: /frank/home.py/page
Transfer-Encoding: chunked
Content-Type: text/plain
X-Pad: avoid browser bug
HTTP/1.1 200 OK
Date: Fri, 25 Jan 2002 00:32:14 GMT
Server: Apache/1.3.22 (Unix) mod_mp3/0.33
mod_python/2.7.6 Python/2.1.2 PHP/4.1.1 mod_perl/1.26
Transfer-Encoding: chunked
Content-Type: text/html
Under 7.9.3, it hangs after the first redirect:
-------------------------------------------------
* Connected to localhost.hiwaay.net (127.0.0.1)
> GET /frank/home.py/page HTTP/1.1
User-Agent: curl/7.9.3 (i686-pc-linux-gnu) libcurl
7.9.3 (OpenSSL 0.9.6c)
Host: localhost
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, */*
HTTP/1.1 301 Moved Permanently
Date: Fri, 25 Jan 2002 00:35:29 GMT
Server: Apache/1.3.22 (Unix) mod_mp3/0.33
mod_python/2.7.6 Python/2.1.2 PHP/4.1.1 mod_perl/1.26
Set-Cookie: sid=fIic4YPoqPhlvIBOSO6qWoXldei9XH
location:
browser_check_page2?sid=fIic4YPoqPhlvIBOSO6qWoXldei9XH
Transfer-Encoding: chunked
Content-Type: text/plain
* Closing connection #0
curl: (28) Operation timed out with 0 out of -1 bytes
received
I hope my pages aren't doing something "illegal", but
they work under w3m, lynx, netscape, konqueror, and
curl 7.9.2.
The problem occurs with: curl 7.9.3
(i686-pc-linux-gnu) libcurl 7.9.3 (OpenSSL 0.9.6c)
Let me know if I can give you any more info.
thanks ...
frank
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=508235&group_id=976
Received on 2002-01-25