cURL / Mailing Lists / curl-library / Single Mail


Re: Query regarding redirected URL

From: Dan Fandrich <>
Date: Fri, 22 Nov 2013 20:35:54 +0100

On Fri, Nov 22, 2013 at 05:03:03PM +0800, Badri Narayanan wrote:
> Hi,
> I'm trying to grab the URL that my CPE is being re-directed to from the server
> using the function   
> "CURLINFO_REDIRECTED_URL". However it returns a null value for me. Please help
> me out.

Can you show us the headers returned by the server? Note that this option only
returns URLs due to HTTP redirects, not HTML or JavaScript redirects.

>>> Dan
List admin:
Received on 2013-11-22