httpGetContent()
This function extracts the content of the currently processing HTTP-Request.
Synopsis
int httpGetContent(int idx, <string|blob> content);
Parameter
Parameter | Description |
---|---|
idx | The client index (internal number of the client). |
content | Place the content is saved to. |
Return value
Returns 0 upon success.
Error
Returns -1 when an error occurs. Errors include:
-
missing arguments
-
inapplicable indexes
-
httpServer() is not installed.
Description
The function extracts the content of the processing HTTP-Request, therefore it can only be used inside the callBack function.
In case of the content being recieved in a "text/..." type the data is recorded in the language currently active within the project.
Assignment
CTRL PlugIn
Availability
CTRL, UI