Link to home
Start Free TrialLog in
Avatar of Hojoformo
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.XMLHTTP")    '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-urlencoded"
    xmlHttp.Send poststring      'send HTTP request to the server
    Set xmlHttp = nothing      'free the object
Avatar of vbandaru
vbandaru

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
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial