curl-and-php
Re: Object Moved
From: mixo <mixo_at_beth.uniforum.org.za>
Date: Wed, 21 Nov 2001 08:38:23 +0200
Date: Wed, 21 Nov 2001 08:38:23 +0200
Tempest Digital Solutions wrote:
> I am posting forms to an Authorize.net type server, and upon reply, my
> browser window shows <h1>ObjectMoved</h1> and a link to the page where the
> script should have redirected. I am very new to anything cURL and was
> wondering if cURL was doing this, and how to stop it.
>
> This is a php script utilizing libCURL.
>
> Regards,
>
> Will Phillips
If you are using 'php-crul' , set the option CURLOPT_FOLLOWLOCATION to
a none 0 value, e.g.
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
This should allow for rediretion.
Mixo
P.S. If you are using 'curl ' directly, the pass '-L' as an option, like
`curl -m $timeout -d "$urlParameters" $url -L'
Received on 2001-11-21