Description

HTTP library can be used to make HTTP requests.

The library extends Robot Framework RequestsLibrary functionality with RPA-oriented keywords.

Examples

Robot Framework

*** Settings ***
Library    RPA.HTTP

*** Variables ***
${URL}       https://ec.europa.eu/energy/sites/ener/files/documents/EnergyDailyPricesReport-EUROPA_0.pdf
${PDF_FILE}  prices.pdf

*** Tasks ***
Get Energy Prices
    HTTP GET   ${URL}  ${PDF_FILE}

Python

from RPA.HTTP import HTTP

library = HTTP()
url = "https://ec.europa.eu/energy/sites/ener/files/documents/EnergyDailyPricesReport-EUROPA_0.pdf"
response = library.http_get(url, "prices.pdf")

API Documentation

  • Robot Framework API
  • Python module API