Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

HTTP Post a Base64 encrpted file

Posted on 2006-12-01
3
Medium Priority
?
255 Views
Last Modified: 2008-02-01
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
0
Comment
Question by:Hojoformo
3 Comments
 
LVL 7

Expert Comment

by:vbandaru
ID: 18056566
The above code is certainly not javascript. Where did you get it from. Do you want to do the post from the client side?
0
 
LVL 2

Expert Comment

by:score_under
ID: 18057266
This is a vbscript document, not javascript.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 2000 total points
ID: 18057425
>  I need to post a base64 encrypted file ..
you need to read the file first, convert to base64 and then post it
or you need to use multipart/form-data and set the enctype to base64 for the variable of your file
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question