Sock.Httprqstring R/O Property
|Top Previous Next|
The sock.httprqstring is a property; it can be invoked several times and will return the same data (when this property is used the data is not deleted from the VAR buffer). VAR buffer contents are explained in Details on Variable Data.
This property 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. Maximum length of data that can be obtained through this property is 255 bytes, since this is the maximum possible capacity of a string variable that will accept the value of the sock.httprqstring.
HTTP requests can be much longer than 255 bytes and can even include entire files being uploaded from the client to your device. Rely on the on_sock_postdata event and the sock.gethttprqstring method to handle large amounts of HTTP variable data correctly.