Subj : Re: Grabbing results from a webpage
To : The Lizard Master
From : Tracker1
Date : Thu Aug 20 2020 10:37 am
On 8/20/2020 6:18 AM, The Lizard Master wrote:
> 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);
var res = req.Get('http:///some.web.site/page?variable1=' +
encodeURIComponent(variable1))
If encodeURIComponent isn't available, use escape
--
Michael J. Ryan
tracker1 +o Roughneck BBS
---
� Synchronet � Roughneck BBS - coming back 2/2/20