Hojoformo
asked on
HTTP Post a Base64 encrpted file
I need to post a base64 encrypted file using Javascript or VBScript. Is this the correct syntax? Will this only work for XML formats or will this work for any format?
Response.Buffer = True
Dim objXMLHTTP, xml
Dim xmlHttp
Response.Buffer = True
dim poststring
poststring="data=" & Base64Data
Set xmlHttp = CreateObject("Msxml2.XMLHT TP") 'create object
On Error Resume Next 'error handling
xmlHttp.Open "POST", "http://xxxxx.xxxx.net/comcalc1/bi/", False
xmlHttp.setRequestHeader "Content-Type", "application/x-www-form-ur lencoded"
xmlHttp.Send poststring 'send HTTP request to the server
Set xmlHttp = nothing 'free the object
Response.Buffer = True
Dim objXMLHTTP, xml
Dim xmlHttp
Response.Buffer = True
dim poststring
poststring="data=" & Base64Data
Set xmlHttp = CreateObject("Msxml2.XMLHT
On Error Resume Next 'error handling
xmlHttp.Open "POST", "http://xxxxx.xxxx.net/comcalc1/bi/", False
xmlHttp.setRequestHeader "Content-Type", "application/x-www-form-ur
xmlHttp.Send poststring 'send HTTP request to the server
Set xmlHttp = nothing 'free the object
The above code is certainly not javascript. Where did you get it from. Do you want to do the post from the client side?
This is a vbscript document, not javascript.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.