curl-and-php
Re: Problem with redirection
Date: Mon, 17 Dec 2007 22:06:54 +0100
Hi
Thank you for your answer.
I get the header (HTTP/1.1 302 Found Date: Mon, 17 Dec 2007 15:20:17 GMT
Server: Apache/2.0.54 (Debian GNU/Linux) PHP/5.2.3...........),
but i can not see the content of the page itselfs.
When i analyse the header, a part of the header information is following:
.....location:
http://www.holidayandmore.de/index.asp?Agentur=50376&AgentID=20316
and this seems to be ok! When i paste this information into the addressline
of the browser, i will get the desired content.
The option for the redirection is set: curl_setopt($ch,
CURLOPT_FOLLOWLOCATION, 1);
..... but it does not work !!!!!!!!
Thank you for your help. Any other ideas?
Thanks in advance.
Joedi
----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "curl with PHP" <curl-and-php_at_cool.haxx.se>
Sent: Monday, December 17, 2007 8:46 PM
Subject: Re: Problem with redirection
> On Mon, 17 Dec 2007, Werner Hofer wrote:
>
>> I would like to use the curl library. I wish to get a content from a page
>> (page x: http://www.travelan.net/module/20316/more-gesamt/).
>
>> Now the problem is following: There is an redirection whitin page x and i
>> do
>> not know how to get the content of the redirected page x
>
> Are you really sure you don't get this? I enabled redirect following and
> my
> curl versions (including very old versions) could follow this fine.
>
>> curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
>
> This is what makes libcurl follow the redirect and it seems to work for
> me.
>
> --
> 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-12-17