cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_FOLLOWLOCATION

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 9 Sep 2002 16:10:04 +0200 (MET DST)

On Mon, 9 Sep 2002, Lorenzo Pastrana wrote:

> I'm trying to use the redirection facilities in curl (using the multi
> interface and CURLOPT_FOLLOWLOCATION for the easy handle set to true), but
> can't figure out the behaviour I get...

1) Bug report number #594005 "multi interface doesn't FOLLOWLOCATION"
http://sourceforge.net/tracker/index.php?func=detail&aid=594005&group_id=976&atid=100976

2) Check the lib/multi.c comment found around the CURLM_STATE_PERFORM state
   check:
      /* hm, when we follow redirects, we may need to go back to the CONNECT
         state */

3) Fill in the missing code! ;-)

Seriously, the functionality in lib/transfer.c that deals with redirects need
to be extracted and put into a more general function, that then should be
used from lib/multi.c.

I intend to do it soon, if no one else beats me to it.

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-09-09