Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Request.Post (gb.web)

Static Property Read Post As _Request_Post

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