.Httprqtype R/O Property

Top  Previous  Next

Function:

For the selected socket (selection is made through sock.num), and provided that this socket is running in the HTTP mode (sock.httpmode= 1- YES), returns the type of the HTTP request received from the browser.

Type:

Enum (pl_http_rq_type, byte)

Value Range:

0- PL_SOCK_HTTP_RQ_GET (default): HTTP GET request.

1- PL_SOCK_HTTP_RQ_POST: - HTTP POST request.

See Also:

sock.httprqstring

 


Details

Note that it only makes sense to query this property after the HTTP request has actually been received, i.e. in the code embedded inside or called from the HTML page.