cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: -L problem?

From: Paul Harrington <paul_at_pizza.org>
Date: Fri, 26 Oct 2001 13:41:53 +0100

> Note the multiple spaces.

Hmm the code should deal with this too. I'm wondering if this is
something to do with reusing the connection. A simple test gives:

# curl -v -L -i https://fred.rhl:9004/logoff
* SSL connection using RC4-MD5
* Server certificate:

[snip]

* Connected to fred.rhl.company.co.uk (1.2.3.4)
> GET /logoff HTTP/1.1
> User-Agent: curl/7.9-pre6 (sparc-sun-solaris2.6) libcurl 7.9-pre6
> (OpenSSL 0.9.6b)
Host: fred.rhl:9004
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

HTTP/1.1 302 Moved Temporarily
Server: Netscape-Enterprise/4.1
Date: Fri, 26 Oct 2001 12:37:36 GMT
Set-Cookie: vgnvisitor=Dlcms000gqU0002NeZBp48X3L7; path= /;
expires=Saturday, 06-Sep-2014 23:50:08 GMT
Set-Cookie: SessionID=; path=/
Set-Cookie: SessionOR=; path=/
Set-Cookie: SessionVpath=; path=/
Set-Cookie: SessionExp=; path=/
Set-Cookie: hashCookie=; path=/
Set-Cookie: sessionCookie=; path=/
Set-Cookie: cachecookie=; path=/
Location: /online/1,1795,Welcome,00.html?logout=TRUE
Content-length: 0

* Connection (#0) left alive
* Follows Location: to new URL:
* 'https://fred.rhl:9004/online/1,1795,Welcome,00.html?logout=TRUE'
* Disables POST, goes with GET
* Re-using existing connection! (#0)
* Connected to fred.rhl.company.co.uk (1.2.3.4)
> GET /online/1,1795,Welcome,00.html?logout=TRUE HTTP/1.1
User-Agent: curl/7.9-pre6 (sparc-sun-solaris2.6) libcurl 7.9-pre6
(OpenSSL 0.9.6b)
Host: fred.rhl:9004
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
                  
* Connection (#0) left alive
* Closing live connection (#0)

But it doesn't return the page we are meant to be redirected too.
Getting the page manually using curl works fine.

REgards

Paul
Received on 2001-10-26