Skip to content
Snippets Groups Projects
Commit 678e7480 authored by rswindell's avatar rswindell
Browse files

Attempt at using HTTPRequest, what are we doing wrong here, Deuce?

parent 57d66fa4
No related branches found
No related tags found
No related merge requests found
/* $Id: */
load("http.js");
var url = argv[0];
var filename=file_getname(url);
var file = new File(filename);
if(!file.open("w"))
print("error " + file.error + " opening " + file.name);
else {
var contents = new HTTPRequest().Get(url);
file.write(contents);
file.close();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment