post()

Performs a POST request to the specified endpoint URL.

Octave.Http.post(url, headers, data)

Parameters

  • url: the URL to POST.
  • headers: a mapping of header names and values.
  • data: the POST body.
ParameterTypeRequiredDescription
urlStringYesThe URL to POST.
headersStringNoA mapping of header names and values.
dataStringNoThe POST body.

Returns

FieldTypeDescription
headersStringMap of header keys and values.
statusIntegerHTTP status code.
messageStringHTTP status message.
contentTypeStringValue of HTTP Content-Type header.
contentStringResponse body.