Downloading files from an HTTP server
This example demonstrates how to download a PDF document from an HTTP server and save it as a local file. We will use RPA.HTTP
library from the RPA Framework.
*** Settings ***
Documentation Download a PDF document from an HTTP server and save as a local file.
Library RPA.HTTP
*** Variables ***
${PDF_URL} https://ec.europa.eu/energy/sites/ener/files/documents/EnergyDailyPricesReport-EUROPA_0.pdf
*** Tasks ***
Download a PDF document from an HTTP server
Download ${PDF_URL}
*** Tasks ***
Download a PDF document from an HTTP server and overwrite existing file
Download ${PDF_URL} overwrite=True
*** Tasks ***
Download a PDF document from an HTTP server using specific target location and name
Download ${PDF_URL} target_file=output/my.pdf