.Gethttprqstring Method

Top  Previous  Next

Function:

For the selected socket (selection is made through sock.num) extracts up to 255 bytes of the HTTP request string from theVAR 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

Extracted data is permanently deleted from the VAR buffer. VAR buffer contents are explained in Details on Variable Data.

Length of extracted data is limited by one of the three factors (whichever is smaller): amount of data in the buffer itself, 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 on_sock_postdata event handler.