CALLURL

Returns the result of an http-based url request.

Syntax

CALLURL(url; method; body; header)

  • url - the url to which the request is sent - Value type: text

  • method - the http request method ("GET", "POST", "DELETE", ...) - Value type: text (optional, default: "GET")

  • body - the body data of the http request - Value type: text (optional, default: empty)

  • header - the header of the http request - Value type: text (optional, default: empty)

Remarks

  • The function returns the result of the http request as text.

  • If the url request returns any mime type other than text/…, application/javascript, application/json, application/xml, the function returns !ERROR.

Example

After clicking on the CallURL button, the url from the top cell widget is sent, and the result is assigned to the bottom cell.

In this example, a post request is sent to a url, including body and header information.