curl-and-php
Re: how to get the last fetched URL
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 5 Sep 2007 11:49:47 +0200 (CEST)
Date: Wed, 5 Sep 2007 11:49:47 +0200 (CEST)
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-phpReceived on 2007-09-05