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: | 73 |
| Nodes: | 8 (2 / 6) |
| Uptime: | 42:59:59 |
| Calls: | 1,591 |
| Calls today: | 1 |
| Files: | 17,895 |
| D/L today: |
134 files (54,354K bytes) |
| Messages: | 66,491 |