RE: [PHP] HTTPS POST without user/client intervention
| From: | Jeff Harris | Date: | Wed, 16 Jul 2003 16:12:56 +0000 |
| Subject: | RE: [PHP] HTTPS POST without user/client intervention | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155459@lists.php.net to get a copy of this message | ||
|-----Original Message-----
|From: PHP List [mailto:phplist@nfri.com]
|Sent: Tuesday, July 15, 2003 1:02 PM
|To: php-general@lists.php.net
|Subject: [PHP] HTTPS POST without user/client intervention
|
|I am writing a php script to accept an HTTPS POST of data from a remote
|site, process the data, and send an HTTPS POST response back (not
|necessarily to the same remote site). I can do this pretty easily in
|PERL (which I may have to if I can't find a PHP solution). Also I need
|to do the https post without any kind of client or user interaction. I
|have checked through php.net and phpbuilder.com but have only come up
|with things for HTTP POST (no SSL Encryption). Anyone run across
|something like this, or can point me in a direction to look?
|
On Jul 16, 2003, "Ralph Guzman" claimed that:
|
|I think what you are looking for is socket connections:
|http://www.php.net/manual/en/function.fsockopen.php
|
|Or CURL
|
|http://www.php.net/manual/en/ref.curl.php
|
Another option for you is to ouput a blank page with just a form pointing
where you need it to, with hidden inputs, and at the end of the page or in
a <body onLoad=''>,
<script language="JavaScript">
document.form.submit();
</script>
Assuming your client has JavaScript.
Jeff Harris
--
Registered Linux user #304026.
"lynx -source http://jharris.rallycentral.us/jharris.asc |
gpg --import"
Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.