cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: how to get the last fetched URL

From: Natasha Trovaldo <scriptsbible_at_gmail.com>
Date: Wed, 5 Sep 2007 16:36:29 +0500

I even tried this http://curl.haxx.se/mail/curlphp-2005-11/0059.html where
the user has reported that he is getting the last url fetched BUT I GET
http://www.nscash.com/mpa2/random.php?s=2&id=104205 instead of the URL it
redirects to.

can anybody guide me please to get the last url fetched i am lost how to
solve this problem.

thanks

Natasha
Free PHP Scripts Directory
www.scriptsbible.com

On 9/5/07, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Wed, 5 Sep 2007, Natasha Trovaldo wrote:
>
> > now there is one problem, the url it shows as the last fetched url is in
> > fact the local site url which i call from cURL which is like
> >
> > domain.com?siteid=integerid
> >
> > this url is not my target because this redirects to the real site i want
> > that url to which it redirects
>
> CURLINFO_EFFECTIVE_URL is supposed to return the last URL that libcurl
> requested, so it should return the URL it was redirected to.
>
> If it doesn't for you, it smells like a bug somewhere.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-09-05