KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am completely lost. I am trying to post to an API on a remote server from a classic asp page that uses vbscript. My code: set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.open "POST", vURL, false xmlhttp.setRequestHeader "Content-type","application/json" xmlhttp.setRequestHeader "Accept","application/json" xmlhttp.send "email=asdf@hotmail.com&firstname=joe&lastname=smith" vAnswer = xmlhttp.responseText I receive a response that the request is not in the expected format. Tech support informs me that the API expects JSON in the post body. Can I do this from server-side asp?
Tags (comma-separated)
Save Edits
Cancel