Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: cURL and response code 302 Date: Tue, 09 Jul 2013 16:24:29 +0200 Lines: 31 Message-ID: <51DC1D1D.3090905@arnowelzel.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net ZGL0ni9uvY8WH12wU2/GmQW3maFikq57v3rAQhMkJgWYZP/MrK Cancel-Lock: sha1:N9QbI0VJgJu/Pvz+bpi+qEjGnqA= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: Xref: csiph.com comp.lang.php:10051 Am 09.07.2013 16:09, schrieb bill: > On 7/8/2013 12:02 PM, Daniel Pitts wrote: >> On 7/8/13 8:35 AM, bill wrote: >>> when I have cUrl seet up with CURLOPT_FOLLOWLOCATION =>FALSE, >>> I am getting a 302, moved temporarily. >>> >>> How do I find out the URL it is being redirected to ? >>> The effectiveURL that is returned is the one I sent the request >>> to. >>> >>> bill >> >> The "Location" response header contains the desired URL. >> >> See: >> > > Thanks, is there a way to obtain the Location response header > from cURL ? Maybe this example in the documentation may help: -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de