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

curl-and-php

Re: HTTP POST with PHP & cURL and follow redirect

From: <Nigel_Soon_at_advanis.ca>
Date: Sat, 18 Aug 2001 18:13:40 -0600 (Mountain Daylight Time)

n

On Fri, 17 Aug 2001, Roger Chang wrote:

> Here is the problem I am having:
>
> I POST information with cURL through a PHP script, but I don't know how to make the web browser follow the results of the POST.
>
> Using cURL 7.8
>
> <?PHP
>
> $URL="http://www.post-to-me.com/cgi-bin/script";
>
> exec("/usr/local/bin/curl -d \"field1=blah&field2=blah\" $URL -L");
>
> ?>
>
> Roger
>
Received on 2001-08-19