[PHP] Post XML to PHP via XMLHTTP VB Object
Hi, I'm trying to the MSXML DOM 3 from Visual Basic and send XML to a PHP page that sits on my Apache web server on SCO Unix. This is my VB Code: Dim xmlstr As New XMLHTTP30 Dim sXML As String sXML = Content-Type: text/xml; sXML = sXML ?xml version=1.0? sXML = sXML commandcommandtextInitialize/commandtext sXML = sXML returnsdataTrue/returnsdata sXML = sXML /command xmlstr.open POST, http://mywebserver/somepage.php;, False xmlstr.send sXML Set xmlstr = Nothing Pretty basic stuff. This succeeds, and at the Apache server level, in the logs I can see the POST request go through. In the file somepage.php - all I'm doing is running phpinfo() to see what the server thinks it's receiving. ? phpinfo(); ? Back at the VB level, I can see xmlstr.responseText which is the output from phpinfo(); I am not getting any HTTP_POST_VARS like I expected to receive. Has anyone done anything like this before? Is this mainly an issue with Apache rather than PHP? Thanks, Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Post XML to PHP via XMLHTTP VB Object
Try using the $HTTP_RAW_POST_DATA array. -- Steve Meyers [EMAIL PROTECTED] PHP [EMAIL PROTECTED] wrote in message 9clmgq$2fc$[EMAIL PROTECTED]">news:9clmgq$2fc$[EMAIL PROTECTED]... Hi, I'm trying to the MSXML DOM 3 from Visual Basic and send XML to a PHP page that sits on my Apache web server on SCO Unix. This is my VB Code: Dim xmlstr As New XMLHTTP30 Dim sXML As String sXML = Content-Type: text/xml; sXML = sXML ?xml version=1.0? sXML = sXML commandcommandtextInitialize/commandtext sXML = sXML returnsdataTrue/returnsdata sXML = sXML /command xmlstr.open POST, http://mywebserver/somepage.php;, False xmlstr.send sXML Set xmlstr = Nothing Pretty basic stuff. This succeeds, and at the Apache server level, in the logs I can see the POST request go through. In the file somepage.php - all I'm doing is running phpinfo() to see what the server thinks it's receiving. ? phpinfo(); ? Back at the VB level, I can see xmlstr.responseText which is the output from phpinfo(); I am not getting any HTTP_POST_VARS like I expected to receive. Has anyone done anything like this before? Is this mainly an issue with Apache rather than PHP? Thanks, Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Post XML to PHP via XMLHTTP VB Object
Hi, I tried the HTTP_RAW_POST_DATA array, but it doesn't appear to exist. Then I just tried to access it like a variable and it's empty. Have I not got something setup correctly for PHP? Thanks, Sam Steve Meyers wrote in message 9cn71i$d03$[EMAIL PROTECTED]... Try using the $HTTP_RAW_POST_DATA array. -- Steve Meyers [EMAIL PROTECTED] PHP [EMAIL PROTECTED] wrote in message 9clmgq$2fc$[EMAIL PROTECTED]">news:9clmgq$2fc$[EMAIL PROTECTED]... Hi, I'm trying to the MSXML DOM 3 from Visual Basic and send XML to a PHP page that sits on my Apache web server on SCO Unix. This is my VB Code: Dim xmlstr As New XMLHTTP30 Dim sXML As String sXML = Content-Type: text/xml; sXML = sXML ?xml version=1.0? sXML = sXML commandcommandtextInitialize/commandtext sXML = sXML returnsdataTrue/returnsdata sXML = sXML /command xmlstr.open POST, http://mywebserver/somepage.php;, False xmlstr.send sXML Set xmlstr = Nothing Pretty basic stuff. This succeeds, and at the Apache server level, in the logs I can see the POST request go through. In the file somepage.php - all I'm doing is running phpinfo() to see what the server thinks it's receiving. ? phpinfo(); ? Back at the VB level, I can see xmlstr.responseText which is the output from phpinfo(); I am not getting any HTTP_POST_VARS like I expected to receive. Has anyone done anything like this before? Is this mainly an issue with Apache rather than PHP? Thanks, Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]