FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » cURL and response code 302
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: cURL and response code 302 [message #185548 is a reply to message #182105] Thu, 10 April 2014 17:23 Go to previous message
kyrpog83 is currently offline  kyrpog83
Messages: 1
Registered: April 2014
Karma:
Junior Member
asshole


On Wednesday, July 10, 2013 12:44:02 AM UTC-4, Daniel Pitts wrote:
> On 7/9/13 7:51 AM, bill wrote:
>
>> On 7/9/2013 10:24 AM, Arno Welzel wrote:
>
>>> 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:
>
>>>> > <http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3>
>
>>>>
>
>>>> Thanks, is there a way to obtain the Location response header
>
>>>> from cURL ?
>
>>>
>
>>> Maybe this example in the documentation may help:
>
>>>
>
>>> <http://www.php.net/manual/en/function.curl-exec.php#80442>
>
>>>
>
>>>
>
>>>
>
>> actually, suggesting that I look at curlopt_header would have been more
>
>> clear.
>
>>
>
>> bill
>
>
>
> Actually, suggesting that you RTFM yourself would have been most clear.
>
> I understand not knowing about Location and HTTP spec, and not knowing
>
> where to look for that. You should learn how to find things in
>
> libraries that you're using though.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Install Apache Php Windows 64 bit
Next Topic: Heartbleed bug?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Jun 18 09:15:41 GMT 2024

Total time taken to generate the page: 0.04519 seconds