Ever try to post XML over HTTPS using php ?
Well it can get almost complicated if you don’t have the right materials.
In this article I will show you how to do it using PHP’s cURL functions.
Requirements:
1- libcurl package ( In PHP 4.2.3, you will need libcurl version 7.9.0 or higher. From PHP 4.3.0, you will need a libcurl version that’s 7.9.8 or higher. PHP 5.0.0 requires a libcurl version 7.10.5 or greater )
Installation
1- Go to http://curl.haxx.se/download.html and download the corresponding libcurl package.
2- For windows users you will have to enable the ‘;extension=php_curl.dll’ in the php.ini file. (libeay32.dll and ssleay32.dll must be present in your PATH.)
For linux/unix users you will have to compile build and then install the package using these 3 steps:
./configure
make
make installNote: You will have to be root in order to do the last step (more info can be found here)
3- Restart apache
Continue reading ‘XML post over HTTPS using PHP’
Popularity: 12% [?]
