Automate

Automate

Make your phone or tablet smarter with automation

Get it on Google Play

HTTP request

An action block that performs a HTTP request, download content from the internet.

The fiber will pause until the download has completed.

The save response controls if, and how the response content will be saved. If Save to file, then the path can be set to an existing or new file, or to a directory where the file will be placed with an automatic name. The path to the actual file downloaded is assigned to the response content variable.

Input arguments

  • Request URLURL of content to download.
  • Request method — request method, default is GET, or POST when a body supplied.
  • Request content typeMIME type of request content.
  • Request content — request content, either text or a dictionary, default is no content.
  • Basic authorization account — name of generic credentials account used for basic HTTP authorization, default is no authorization.
  • Request headers — a dictionary with additional request headers, please use camel case ("Content-Disposition") for keys.
  • Certificate — whether to trust insecure, self-signed, certificates.
  • Redirect — whether to not follow redirects, default is follow redirect.
  • Save response — how to save response content, default is Don’t save.
  • Path — file or directory path where the downloaded content will be saved, default is a file in the Android “Downloads” directory.

Output variables

  • Reponse status code — variable to assign the response status code.
  • Response content — variable to assign the response content as text or path to the downloaded file.
  • Response headers — variable to assign a dictionary with the response headers.
Note! This documentation can also be found in the Help & feedback menu of the app.