readString Function

Top  Previous  Next

Syntax

Net.readString(URL [, stringData [, headers]])

Arguments

URLA string with the URL.
stringDataA string with data to send by the "POST" method.
headersAdditional headers to include in the HTTP request.

Return Value

If successful, a string with the received data; otherwise, an integer error code.

Remarks

If stringData is not present (or null or undefined), the "GET" method will used; otherwise the "POST" method is used.

Examples

 

See Also