cURL / Mailing Lists / curl-library / Single Mail

curl-library

can curllib tell me the new url when it gets redirected?

From: Jan <haihappn_at_gmail.com>
Date: Wed, 22 Oct 2008 16:41:41 +0200

Hello,

is there any possibility that libcurl will tell me the new url when a page
got redirected?

for example:
http://sites.google.com/?ie=UTF-8&sa=N&tab=i3
gets redirected to:
https://www.google.com/accounts/ServiceLogin?continue=http%3A%2F%2Fsites.google.com%2F%3Fie%3DUTF-8%26sa%3DN%26tab%3Di3&continue2=http%3A%2F%2Fsites.google.com%2F%3Fie%3DUTF-8%26sa%3DN%26tab%3Di3&continue1=http%3A%2F%2Fsites.google.com%2F%3Fie%3DUTF-8%26sa%3DN%26tab%3Di3&service=jotspot&passive=true&ul=1

any option so that (for example) curl changes my "link" variable for
CURLOPT_URL:
curl_easy_setopt(curl, CURLOPT_URL, link)
to the new url?

--
Jan
Received on 2008-10-22