web [GET/POST/PUT/DELETE] [<web address>] (<header_name>:<header_value>,…)

Sends an HTTP based web request.

Parameters:

  1. The type of HTTP request to execute. Valid options are “GET”, “POST”, “PUT”, and “DELETE”.
  2. The complete web address to send the request to.
  3. A header map in the form of header names and header values. An ‘=’ is used in between names and values. A ‘,’ is used in between name value pairs.

Returns: The response from the HTTP server that the request was sent to.