cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: redirection list

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sun, 10 Jul 2005 23:40:28 +0200 (CEST)

On Fri, 8 Jul 2005, Arvind Sachdeva wrote:

>>> curl -w "%{num_redirects}" .....

> will give the number of urls that were visited while reaching this url. I
> want the actual value of each url visited.

There is no option in libcurl that provides this info, but using a header
callback it should be fairly easy to just get the Location: headers' contents.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-07-10