RE: [PHP] HTTPS POST without user/client intervention
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 -Original Message- From: PHP List [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 1:02 PM To: [EMAIL PROTECTED] 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? -- Woody In a world without boundaries why do we need Gates and Windows? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] HTTPS POST without user/client intervention
|-Original Message- |From: PHP List [mailto:[EMAIL PROTECTED] |Sent: Tuesday, July 15, 2003 1:02 PM |To: [EMAIL PROTECTED] |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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTTPS POST without user/client intervention
--- PHP List [EMAIL PROTECTED] wrote: 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). Can you perhaps rephrase what you are trying to do? The way I interpret what you are asking may be much simpler than what you really mean to do. To accept an HTTPS POST only requires that your Web server is SSL-enabled. There is nothing special you must do. For example, a PHP script can print out all posted data like this: print_r($_POST); This simple example also replies to the remote site (over SSL) that sent the HTTPS request, since that's where standard out goes. Basically, since SSL lies between TCP and HTTP, by the time your PHP script gets the data, there is really no difference. The difference is in the Web server, not the code (unless you want to check whether the current connection is SSL). As for sending a POST request to a remote site via SSL, just check out cURL, which also has a convenient PEAR package. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTTPS POST without user/client intervention
On Tue, 2003-07-15 at 15:12, Chris Shiflett wrote: --- PHP List [EMAIL PROTECTED] wrote: 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). Can you perhaps rephrase what you are trying to do? The way I interpret what you are asking may be much simpler than what you really mean to do. To accept an HTTPS POST only requires that your Web server is SSL-enabled. There is nothing special you must do. For example, a PHP script can print out all posted data like this: print_r($_POST); Yup...I already accept the https posts just fine... snip... As for sending a POST request to a remote site via SSL, just check out cURL, which also has a convenient PEAR package. This is what I am trying to do...and thanks for point out cURL...I will check it out. Sorry for being unclear... -- Woody In a world without boundaries why do we need Gates and Windows? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTTPS POST without user/client intervention
--- PHP List [EMAIL PROTECTED] wrote: As for sending a POST request to a remote site via SSL, just check out cURL, which also has a convenient PEAR package. This is what I am trying to do...and thanks for point out cURL...I will check it out. In that case, you should find this helpful: http://www.php.net/curl If you like PEAR, this might be handy: http://pear.php.net/Net_Curl cURL does support SSL, so it should provide what you need. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php