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: | 72 |
| Nodes: | 8 (0 / 8) |
| Uptime: | 105:28:03 |
| Calls: | 1,687 |
| Files: | 17,895 |
| D/L today: |
7 files (2,855K bytes) |
| Messages: | 66,411 |