cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: redirection list

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Fri, 8 Jul 2005 09:07:04 -0500

According to the man page, this would do it:

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

should do it.

Ralph Mitchell

On 7/8/05, Arvind Sachdeva <asachdeva_at_gmail.com> wrote:
> I need to get a list of url's that were traversed (due to redirection)
> to reach the current page ? To impelement this currently I am planning
> to setup a header function and then add some parsing code and if the
> status code is greter than 300 but less than 400, I will add the url
> to locally maintained redirection list.
>
> Is there a better way, to do this, because this parsing is already
> done inside curl.
>
> -Arvind Sachdeva.
>
>
Received on 2005-07-08