Hi all,
I have been trying ;
(get-url "http://www.foo...bar.com") which works beautifully but;
(get-url "https://www.foo...bar.com/") just seems to spin forever without returning anything. I usually have to kill newLisp (on winXP) as it stops responding.
I haven't tried it on my linux box yet, does anybody know if get-url supports https out of the box, I couldn't find anything in the help doco.
Regards, Simon Cusack.
does get-url support https?
No SSL protocol support yet but you can specify a timeout in milli seconds:
because https is not implemented, newLISP will still try port 80, but you can force it to the SSL default of 443:
now it will return right away, but again these are all games because https:// support is not implemented.
As a work around use the newLISP 'exec' funtion with the 'curl' UNIX utility:
This will return all standart out from the curl utility in a list of strings to newLISP.
Lutz
Code: Select all
> (get-url "https://www.foo...bar.com/") 2000)
"ERR: timeout"
>
Code: Select all
> (get-url "https://www.foo...bar.com:443" 2000)
"ERR: invalid response from server"
>
As a work around use the newLISP 'exec' funtion with the 'curl' UNIX utility:
Code: Select all
(exec "curl https:// ......")
Lutz
Re:
Any plans for this? Would be rather useful if get/put/post-url functions supported this.Lutz wrote:No SSL protocol support yet
Get your Objective newLISP groove on.
Re: does get-url support https?
Most Unix systems have libcurl on it. It is possible to write a module to do SSL via https and other stuff. Until such a module exists you could use the method, Cormullion uses to post to blogspot.com:
http://newlisper.blogspot.com/2007/06/p ... sp_16.html
Then there is also the Amazon module to communicate with there ec2 data services via https:
http://www.newlisp.org/modules/various/ ... p.src.html
The module assumes you already have keys.
http://newlisper.blogspot.com/2007/06/p ... sp_16.html
Then there is also the Amazon module to communicate with there ec2 data services via https:
http://www.newlisp.org/modules/various/ ... p.src.html
The module assumes you already have keys.
Re: does get-url support https?
Yeah I'm currently using 'curl' right now, was just wondering if there were any plans for building this into newlisp.
Get your Objective newLISP groove on.