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 and outputs
urla url or string


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 ;