Re: Sending post data from a script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Nowosielski wrote:
Hi All,

I'm trying to setup a PHP script that will send a POST data request to a
web form. The script needs to be automatic and not driven by a web form.

For example.

I have a cron script that runs every 15 minutes. The cron script calls
my php script on the server and sends the important data to a web based
form without human interaction. The data has to be passed with the
method="post". Sending the data via a URL request does not suffice.

So my question in general is: How can I send HTTP POST data to a remote
interface without using an HTML FORM?.

Any suggestions would be appreciated.

assuming the cron script in written in php ;-) ....
try the curl extension - should do nicely:

http://php.net/curl



TIA!


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux