cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Problem with redirection

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 17 Dec 2007 20:46:10 +0100 (CET)

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
Received on 2007-12-17