curl-users
RE: redirect
Date: Thu, 17 Aug 2000 08:59:33 -0700
I was under the impression that the -L would simple try to post to the new
URL, that is not what I want.
this is how it works
1. I do a post to login script
2. the script validates my username and password
3. If authentication comes through fine the web server returns a redirect
4. the browser executes a GET on that redirect
in step 4 (with -L) curl attempts to do a POST on the redirect, hence an
error gets thrown saying this page doesn't allow POST
any ideas?
Filip
-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Thursday, August 17, 2000 12:28 AM
To: 'curl_at_contactor.se'
Subject: Re: redirect
On Wed, 16 Aug 2000, Filip Hanik wrote:
> Curl doesn't follow my redirects. It instead gets a message that the
> following url has moved to (the Url that was in the redirect)
Curl doesn't follow _any_ redirects by default.
Reading the man page could provide some ideas. A tiny tiny hint would be the
-L switch.
-- Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77 ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`olReceived on 2000-08-17