PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I want to implement a rate quote system for a PHP e-mall and I decided to use UPS's service.
The problem is they only accept secure connections to this server: https://www.ups.com/ups.app/xml/Rate, on port 443.
Is there any way I can make this work? (I've heared fsockopen doesn't support https://).
If you can find a way to succesfully connect to this server, please let me know. Oh, don't type the address in the browser - it will display an acknoledgement from UPS, but that's not what I need
Thanks
As of PHP 4.3.0, if you have compiled in support for OpenSSL, you may use "https://" to open an HTTP connection over SSL.
Note that the file pointer allows you to retrieve only the body of the response; to retrieve the HTTP response header you need to be using PHP 4.0.5 or later; The headers will be stored in the $http_response_header variable. As of PHP 4.3.0, the header information can be retrieved using the file_get_wrapper_data().
so you may want to try out the announced "Alpha 2 of PHP w/ the Zend Engine 2" as tar.gz or windows binary