note 63253 added to wrappers.http
| From: | dadvani at hotmail dot co dot uk | Date: | Fri, 17 Mar 2006 10:22:05 +0000 |
| Subject: | note 63253 added to wrappers.http | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105974@lists.php.net to get a copy of this message | ||
Hi,
Has anyone got any solution for POSTING xml over http to https running on IIS 6.0? I have openssl
enabled on Apache which is running on windows 2k.
I have read a lot of posts that say exactly what i done so far but no joy yet. Do i need to have a
proper certificate installed for it it work? I have even tried Curl and its says there is a problem
with the certificate.
My phpinfo shows:
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7c 30 Sep 2003
This is what i am sending over the socket opened with fsockopen.
$host="localhost";
$header = "post $fullurl HTTP/1.1\r\n".
"Host: $host\n". "User-Agent: PostIt\r\n".
"Content-Type: application/x-www-form-urlencoded\r\n".
"Content-Length: $contentLength\r\n\r\n".
"$message\r\n";
The result is:
HTTP/1.1 403 Forbidden Content-Length: 1758 Content-Type: text/html Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET Date: Fri, 17 Mar 2006 10:09:54 GMT
The expected result is:
<xml>from the server<xml>
----
Server IP: 84.18.202.180
Probable Submitter: 195.217.141.65
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/wrappers.http.php
Edit -- http://master.php.net/note/edit/63253
Del: integrated -- http://master.php.net/note/delete/63253/integrated
Del: useless -- http://master.php.net/note/delete/63253/useless
Del: bad code -- http://master.php.net/note/delete/63253/bad+code
Del: spam -- http://master.php.net/note/delete/63253/spam
Del: non-english -- http://master.php.net/note/delete/63253/non-english
Del: in docs -- http://master.php.net/note/delete/63253/in+docs
Del: other reasons-- http://master.php.net/note/delete/63253
Reject -- http://master.php.net/note/reject/63253
Search -- http://master.php.net/manage/user-notes.php