Request.Post (gb.web)
Return a virtual object that allows to retrieve the data stored in the request contents.
Request.Post only deals with
application/x-www-form-urlencoded
and
multipart/form-data" content type.
For other content type (like
application/json
), you must read it manually from the standard input.
So you do something like this:
Example
If Request.Method = "POST" And If Request.ContentType = "application/json" Then
sData = Read Request.ContentLength
MyJsonData = JSON.FromString(sData)
' Do more stuff with it.
Endif