The only way I can think of doing this is via cURL, so you'll need to either
have the hosting company recompile their PHP with cURL (something any decent
hosting company should do - it's not a difficult process), or have them
provide an external curl module (like an .so file) so you can use the dl()
function load it, which is basically the same as having curl compiled, but a
tiny bit slower.

Or you could also install the command-line version of cURL or any other
https posting 3rd-party programs and have PHP use the command-line tools to
post to https, but there's no other way that I know of.

- Jonathan

-----Original Message-----
From: mailing list [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 6:39 AM
Subject: [PHP-DB] https post via php


I am attempting to POST to a server and return
the result from the server into the script without the user knowing using
a php script.  I can not use CURL becuase the shared server I have hosting
this site was not compiled -with-curl.  I downloaded HTTP_POST PHP script
from:  Here is my code that I
am using to call the functions:



//instantiate class http_post
$a = new http_post;

//define variables

$a->set_element(array("MEN" => "789","MPA" => "456", "MID" => "7015","CRO"
=> "123456780","CAC" => "123123123",
"CPH" => "17015551212","PAM" => "12.34"));


Here is the result returned from the browser:

Bad Request
Your browser sent a request that this server could not understand.

Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.


Apache/1.3.20 Server at Port 80

Does anyone have any ideas?

PHP Database Mailing List (
To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to