HTTP POST Question
| From: | Montgomery-Recht, Evan | Date: | Mon, 19 Feb 2001 12:06:13 +0000 |
| Subject: | HTTP POST Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-40559@lists.php.net to get a copy of this message | ||
Good morning...
This should be a good monday morning question.
I have a cgi-bin written in perl (it's actually, a interface to a
perl-module which is a interface to a telnet-like protocol).
Anyways what I need to do is I have already existing code written in PHP,
but at some point I need to call this cgi-bin and get a return code from it
and process (good/bad result) and return to completed php script that says
it called this cgi-bin. It's not very clear how to set the HTTP_POST_VARS
for sending to a post command (which doesn't seem to exist);
Any ideas I don't see a function called:
$HTTP_POST_VARS =set variables;
$result = http_post("http://localhost/cgi-bin/script.pl");
Thanks,
evan
PS. I'd appricate a working example, even if it's a dummy version.