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

curl-and-php

HTTP POST with PHP & cURL and follow redirect

From: Roger Chang <tungshan_at_earthlink.net>
Date: Fri, 17 Aug 2001 16:59:22 -0700

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-18