Re: How do I fake a FORM submission with POST Mothed from PHP
| From: | Chris Shiflett | Date: | Mon, 08 Dec 2003 15:18:30 +0000 |
| Subject: | Re: How do I fake a FORM submission with POST Mothed from PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-172151@lists.php.net to get a copy of this message | ||
--- leon <leon@asiaithr.com> wrote:
> How can I POST a submit to a webserver and get the response content
> in PHP script?
You can do it manually:
http://shiflett.org/hacks/php/http_post
Other options are cURL and various PEAR classes.
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/