cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: how to know http server returns 302 and deal with it?

From: Michael Schuster <Michael.Schuster_at_sun.com>
Date: Sat, 27 Feb 2010 09:11:39 +0100

On 02/27/10 08:59, Basil Su wrote:
> help:
> i'm programming for fun using libcurl 7.19.5 in Linux/C. i'm confused
> that if the http server returns 302, can i get it according
> curl_easy_getinfo() ? is the error code 0 or something else?
> thanks.

erm.. I don't know the answer either, but if I were you I'd try it out
first, search around the internet for some examples, and if all of that
fails, *then* come to this list with some detail of what I tried and what
the results (expected vs. actual) were.

cheers
Michael

-- 
Michael Schuster        http://blogs.sun.com/recursion
Recursion, n.: see 'Recursion'
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-27