Skip to main content
The HTTP Request - Got command (Command Type: 1003) executes a single HTTP request using the Got Node.js library. Supports HTTP/2, proxy, and TLS settings.

Command Type

Command Type ID: 1003

Parameters

ParameterTypeDescriptionRequired
urlstringThe target URLYes
verbstringHTTP method: "GET", "POST", "PUT", "DELETE", "PATCH"Yes
contentTypestringPayload type: "JSON" or "form-data"Yes
timeoutnumberTimeout in millisecondsYes
bodyobjectRequest body for POST/PUTNo
bypassStatusCodeArray of numberStatus codes to bypass default error handlingNo
headersobjectHTTP headersNo
isHttp2booleanEnable HTTP/2 for the requestNo
proxyProxySettingsProxy settingsNo
proxyConnectionTimeoutnumberTimeout for proxy connection in millisecondsNo

ProxySettings

FieldTypeDescriptionRequired
hoststringProxy server hostnameYes
portstringProxy server portYes
protocolstringProxy protocol (e.g., http)Yes
authobjectProxy authentication credentialsNo
linkLinkLink proxy configurationNo
linkTunnelLinkTunnelLink tunnel configurationNo

Usage Examples

Basic GET Request

{
  "command": "http-request-got",
  "params": {
    "url": "https://api.example.com/data",
    "verb": "GET",
    "contentType": "JSON",
    "timeout": 10000
  }
}

POST with JSON Body

{
  "command": "http-request-got",
  "params": {
    "url": "https://api.example.com/submit",
    "verb": "POST",
    "contentType": "JSON",
    "timeout": 15000,
    "body": { "query": "live_data" },
    "headers": { "Authorization": "Bearer %{API_TOKEN}" }
  }
}