cURL / Mailing Lists / curl-library / Single Mail


curl redirect

From: <>
Date: Wed, 26 Sep 2007 17:21:16 +0800

In my program, I use the curl_easy_setopt function with the
"CURLOPT_FOLLOWLOCATION" option set. When my progrm is redirected to another
location, how can I get the Location part in the HTTP header?

Should I set the CURLOPT_HEADERFUNCTION option, and parse the HTTP header to
get the "Location" option? I think this method is not effective, want your
Received on 2007-09-26