Forum Moderators: coopster

Message Too Old, No Replies

Server Side Posting (SSL)

Posting from my server to another

         

Raymond

8:56 am on Feb 25, 2004 (gmt 0)

10+ Year Member



Hi, I am having compatibility problems with MSXML to server post on a Java enterprise server. I am looking for a PHP alternative to get around the compatibility issue.

Here is my sample code in ASP:

<%@LANGUAGE="VBScript"%> 
<%
Dim xmlhttp
Set xmlhttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
xmlhttp.Open "POST", "https://www.somewebsite.com/xyz.jsp", False
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"

xmlhttp.send "Variable=1"
if (xmlhttp.status <> 200 ) then
response.write "Post FAILED"
else
response.write "Post SUCCESSFUL"
response.write "returned status=" & xmlhttp.status
end if

'Below is the object that generates the msxml3.dll error 'c00ce56e' by the MSXML2 Object
response.write xmlhttp.responseText
Set xmlhttp = Nothing
%>


Apparently, MSXML does not support the encoding type that Java Enterprise server has. Can someone point me to a similar PHP server side posting tutorial that is similar to the functionalities of the ASP script above?

Thank you in advance.

coopster

10:31 pm on Feb 25, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Looks like you may need to send a character encoding along with your headers:
h**p://support.microsoft.com/default.aspx?scid=kb;en-us;304625

Raymond

5:28 am on Feb 26, 2004 (gmt 0)

10+ Year Member



Looks like you may need to send a character encoding along with your headers

Mind explaining a bit more? I am not sure how should I resolve this. Thank you.

Raymond

6:34 am on Feb 26, 2004 (gmt 0)

10+ Year Member



Is there a similar method that does a SERVER POST that is written in PHP?

Thank you for your help.

coopster

7:02 pm on Mar 3, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Maybe the PHP header [php.net] function will work for you?