Re: Grabbing results from a webpage
By: echicken to The Lizard Master on Thu Jul 23 2020 09:14 am
> load('http.js');
> var req = new HTTPRequest();
> var res = req.Get('http://some.web.site/');
> console.putmsg(res);
This is probably my javascript ignorance, but can I ask how you pass a javascript variable to a url variable? I tried setting it to a complete string that displays correctly, but I get a 400 error response from the server.
var res = req.Get(fullFormedURLThatWorksCopyPaste);
I also tried this -
var res = req.Get('http:///some.web.site/page?variable1=' + variable1);
Sysop: | Karloch |
---|---|
Location: | Madrid, Spain |
Users: | 80 |
Nodes: | 8 (0 / 8) |
Uptime: | 82:25:49 |
Calls: | 1,468 |
Files: | 17,895 |
Messages: | 66,284 |