Handbook
Glossary
download ( url -- )
HTTP client
ยป
GET requests with the HTTP client
Prev:
http-get* ( url -- response data )
Next:
download-to ( url file -- )
Vocabulary
http.client
Inputs
url
an
url
or a
string
Outputs
None
Word description
Downloads the contents of the URL to a file in the
current-directory
having the same file name.
Errors
Throws an error if the HTTP request fails.
Definition
USING:
kernel
;
IN:
http.client
:
download
( url -- )
dup
download-name
download-to
;