newLISP Fan Club

Forum => newLISP in the real world => Topic started by: csfreebird on February 03, 2013, 07:17:24 PM

Title: HTTPS request
Post by: csfreebird on February 03, 2013, 07:17:24 PM
Hello

  I know newlisp has some HTTP APIs, but I need to access web server via HTTPs when logging.

How to do this?
Title: Re: HTTPS request
Post by: rickyboy on February 03, 2013, 08:37:27 PM
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.
Title: Re: HTTPS request
Post by: csfreebird on February 06, 2013, 04:26:47 AM
Quote
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.
Title: Re: HTTPS request
Post by: xytroxon on February 07, 2013, 12:00:50 AM
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
Title: Re: HTTPS request
Post by: csfreebird on February 07, 2013, 12:15:13 AM
Thank you. That's what I want. I will try when free.