cURL / Mailing Lists / curl-users / Single Mail

curl-users

-L problem?

From: Paul Harrington <paul_at_pizza.org>
Date: Fri, 26 Oct 2001 11:23:55 +0100

Hi,

        I've got a script which calls curl with the following options:

/usr/local/bin/curl -3 -v -L -sS -w 'curlstats: %{time_total} {time_namelookup} %{time_connect} %{time_pretransfer} %{http_code}' -m 60 -A 'IBANKING-TEST 1.01' -b /usr/local/ib_test/kappa/tmp/2153.cookies.prodweb01-ap1-vip -D /usr/local/ib_test/kappa/tmp/2153.header.main::log_off.prodweb01-ap1-vip -o /usr/local/ib_test/kappa/tmp/2153.output.main::log_off.prodweb01-ap1-vip.html 'https://1.2.3.4/logoff' >/usr/local/ib_test/kappa/tmp/2153.stderr.main::log_off.prodweb01-ap1-vip

Which gives the following:

HTTP/1.1 302 Moved Temporarily
Server: Netscape-Enterprise/4.1
Date: Fri, 26 Oct 2001 10:13:10 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,2110,Welcome,00.html?logout=TRUE
Content-length: 0
Connection: close

But the -L flag sends me to:

* Follows Location: to new URL: 'https://1.2.3.4/'

This is using:

curl 7.6 (i386-unknown-freebsd2.2.8) libcurl 7.6 (SSL 0.9.4)

but I'm pretty sure 7.9 on my dev box is also doing it.

Regards

Paul

-- 
         Paul Harrington              ___________________________________
   Independent Internet Limited      /       Phone:  07779 622683
  Internet * Security * Unix * NT   /        Fax:    0870 2841627
___________________________________/    http://www.independent.comms.net
Received on 2001-10-26