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

curl-and-php

POST

From: Roger <roger_at_onetechnologies.net>
Date: Fri, 13 Sep 2002 17:48:20 -0500

Here is the behavior i'm trying to simulate:

I'm on website <www.abcdef.com>. On this website, there is a form that
POSTs to <www.abcdef.com/process.php>.
I fill out the form and press submit. In my web browser, the url now
shows: <www.abcdef.com/process.php>

I own website <www.123456.com>. Here is what is happening:
I type in: <www.123456.com/send.php?data1&data2&data3> and send.php will
POST the "data" to <www.abcdef.com/process.php>. However, in my web browser
the url shows <www.123456.com/send.php?data1&data2&data3>. How do I make
the url show <www.abcdef.com/process.php>?

here is the my curl command:

exec(/usr/bin/curl -L -s -m 300 -d "data"
http://www.abcdef.com/process.php, $return_message_array, $return_number);
then I output $return_message_array one line at a time.

Roger

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-09-14