How do I access what has been posted by a client to my classic ASP server?
I know that there is the Request.Forms variable, but the client's request was not made using a Form.
The client request's body is just a string made using a standard POST statement.
Thanks
Json – Accessing a request’s body using classic ASP
asp-classicjsonpostrequest
Related Topic
- Jquery – Get Classic ASP variable from posted JSON
- JQuery posting valid json in request body
- Javascript – pretty-print JSON using JavaScript
- Json – Can a classic ASP page using xmlhttp make a JSON request
- IIS 7 Classic ASP application running in Integrated mode
- How to check form submission ASP classic
- Node.js – Proper way to return JSON using node or Express
Best Answer
You need to read request bytes if content type of request sent by client is not form data. In this case, request is not a form-data that is accessible through name-value pairs so you cannot use Request.Form collection. I suggest investigate the BinaryRead method.
Reading posted data and convert into string :
Hope it helps.
Update #1:
With using JScript