Solved

HTTP Post a Base64 encrpted file

Posted on 2006-12-01
3
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
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

738 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