Online Documents
English
English
  • First Launch Experience
  • Activate Software License
  • How to Train EMILY?
  • Simple Web Automation
  • Web Automation Tools
  • Web Automation Processor
  • User Fill
  • Workspace Script
  • File Exporter
  • File Enumerator
  • EXCEL Processor
  • EXCEL Analyzer
  • EXCEL Writer
  • EXCEL Filler
  • CSV Creator
  • PowerShell
  • PDF Analyzer
  • Mail Sender
  • Mail Reader
  • Exchange Mail Sender
  • Exchange Mail Reader
  • HTTP Analyzer
  • Command Line
  • DOCX Templater
  • SQL Executor
  • Desktop Automation (DA)
  • SFTP
  • JSON API Server
  • Chart
  • DOCX2HTML
  • Manage Folder
  • Google Drive
  • Google Sheets
  • Google OCR
  • Google NLU
  • Azure Form Recognizer
  • Anti-Captcha
  • ChatGPT
  • Gemini
  • Schedule Trigger
  • Mail Trigger
  • File Trigger
  • API Trigger
  • Protect Text
  • Flexibility & Security
  • Announcements
    • Version Release
    • Third Party Notice
Powered by GitBook
On this page
  • METHOD
  • ENDPOINT
  • HEADERS
  • TEXT / FILE / FORM
  • Input Object
  • Output Object

HTTP Analyzer

Send an HTTP request and analyse the response

PreviousExchange Mail ReaderNextCommand Line

Last updated 1 year ago

METHOD

Choose a method for sending HTTP requests: GET, POST, PUT, DELETE, HEAD

ENDPOINT

The endpoint website for receiving HTTP requests, for example: https://api.example.com/version

HEADERS

{
  "Content-Type": "application/json"
}

TEXT / FILE / FORM

Choose the content format of the request. If the content of the request is text or JSON data format, select TEXT, and enter the content in TEXT AS BODY. If the content of the request involves uploading a file, select FILE, and click the 📎 icon in FILE AS BODY to choose a file. For both request content formats, you must specify the Content-Type in HEADERS.

If you choose the FORM content format, you should provide the FormData in JSON data format. In this case, you do not need to specify Content-Type in HEADERS. When including files in FormData, you must specify the file name from your workspace, and it should have an extension. For example, if you want to include the file "avatar.jpg" from your working directory with the field name "avatar," it should be as follows:

{
  "username": "emily",
  "avatar": "avatar.jpg"
}

Input Object

The input object is the HTTP response content:

// Input Object
{
  url,         // The complete URL requested
  status,      // Response status code
  contentType, // MIME type of response content
  headers,     // Response headers
  body,        // String or Uint8Array  
}

Output Object

Each key added to the output object will be output as a .txt file in the workspace. The file name will be the key, and the text content will be the corresponding value.

// Output the response content to the workspace

if (input.contentType === 'application/json') {
  let jsonBody = JSON.parse(input.body)
  _.forEach(jsonBody, (value, key) => {
    output[key] = value
  })
}

if (input.contentType === 'image/png') {
  api.write('result.png', input.body)
}

--

HTTP , for example:

We are dedicated to improving our content. Please let us know if you come across any errors, including spelling, grammar, or other mistakes, as your is valuable to us! 🤖️⚡️

request header object
feedback