load. Loading file from HTTP/HTTPS server

^curl:load[] 
^curl:load[
options

Loads file from HTTP or HTTPS server and returns it as an object of class file. Inside the curl session it could be called without parameters.
All incoming
cookies are stored in field cookies as a table with columns name, value, expires, max-age, domain, path, httponly and secure.   [3.4.3]
Also there would be field
tables, hash, keys of which are HTTP-response headers in upper case, and values are tables with sole column value, containing all values of HTTP-response fields of same name.   [3.4.5]

Example
$file[^curl:load[ 
   $.url[https://store.artlebedev.ru/
   $.useragent[Parser3
   $.timeout(10
   $.ssl_verifypeer(0)
]] 




Copyright © 1997–2017 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 26.04.2017