cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Bug report: cookies and redirection

From: Ben Combee <ben.combee_at_gmail.com>
Date: Fri, 11 Apr 2008 11:10:17 -0500

> > What I'd love to see would be a curl_easy_getinfo option that let me query
> the req.newurl value, something like CURLINFO_REDIRECTED_URL, and for that
> to be set even if I have "alwaysfollow" turned off, so I could manually do
> the re-request using the right value when I get a 3xx series result code.
> >
>
> Hey, that's a really good idea methinks. That way people (like you) who
> need more magic to happen between requests can still do that without
> (re-)implementing the redirection logic that libcurl already features.
>
> Would you be able to work on a patch for introducing this?

Yes, I'll try to get this working, and will send in a patch when I've
tested out the code.
Received on 2008-04-11