curl-library
Re: redirection list
Date: Fri, 8 Jul 2005 19:44:55 +0530
Oh!! I fogot to mention I am using C API for curl that is libcurl.
>> 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.
On 7/8/05, Ralph Mitchell <ralphmitchell_at_gmail.com> wrote:
> 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