Hello
I know newlisp has some HTTP APIs, but I need to access web server via HTTPs when logging.
How to do this?
HTTPS request
-
- Posts: 107
- Joined: Tue Jan 15, 2013 11:54 am
- Location: China, Beijing
- Contact:
Re: HTTPS request
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.
(λx. x x) (λx. x x)
-
- Posts: 107
- Joined: Tue Jan 15, 2013 11:54 am
- Location: China, Beijing
- Contact:
Re: HTTPS request
Do you mean develop a web server using newlisp and make it handle HTTPS request from client?You can put newLISP behind a server...
But I want to develop a client based on newlisp, it could access my existing C++ web server.
Re: HTTPS request
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
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
"Many computers can print only capital letters, so we shall not use lowercase letters."
-- Let's Talk Lisp (c) 1976
-- Let's Talk Lisp (c) 1976
-
- Posts: 107
- Joined: Tue Jan 15, 2013 11:54 am
- Location: China, Beijing
- Contact:
Re: HTTPS request
Thank you. That's what I want. I will try when free.