.gethttprqstring Method

Function:

For the selected socket (selection is made through sock.num), extracts up to 255 bytes of the HTTP request string from the VAR buffer.

Syntax:

ser.gethttprqstring(maxinplen as word) as string

Returns:

String containing data extracted from the VAR buffer.

See Also:

Working with HTTP Variables, sock.httprqstring


Part

Description

maxinplen

Maximum amount of data to return (word).


Details

The extracted data is permanently deleted from the VAR buffer. The VAR buffer's contents are explained in Details on Variable Data.

The length of the extracted data is limited by one of the three factors (whichever is smaller): the amount of data in the buffer itself, the capacity of the "receiving" string variable, and the limit set by the maxinplen argument.

This method is only relevant when the socket is in the HTTP mode (sock.httpmode = 1 — YES). Use it from within an HTML page or the on_sock_postdata event handler.


.gethttprqstring Method

Details