Page 1 of 1

HTTPS request

Posted: Mon Feb 04, 2013 3:17 am
by csfreebird
Hello
I know newlisp has some HTTP APIs, but I need to access web server via HTTPs when logging.
How to do this?

Re: HTTPS request

Posted: Mon Feb 04, 2013 4:37 am
by rickyboy
You can put newLISP behind a server that can handle the SSL for you (like Apache or nginx); then newLISP will get the traffic from the front end server as HTTP requests.

Re: HTTPS request

Posted: Wed Feb 06, 2013 12:26 pm
by csfreebird
You can put newLISP behind a server...
Do you mean develop a web server using newlisp and make it handle HTTPS request from client?
But I want to develop a client based on newlisp, it could access my existing C++ web server.

Re: HTTPS request

Posted: Thu Feb 07, 2013 8:00 am
by xytroxon
The cURL project should fit your needs.
http://curl.haxx.se/

You need your system's version of libcurl with ssl enabled
http://curl.haxx.se/libcurl/

And one of these versions of curl.lsp

http://pastebin.com/Jngp4jpR

https://gist.github.com/kosh04/1119771

-- xytroxon

Re: HTTPS request

Posted: Thu Feb 07, 2013 8:15 am
by csfreebird
Thank you. That's what I want. I will try when free.