--- 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

Reply via email to