HTTPS request

Q&A's, tips, howto's
Locked
csfreebird
Posts: 107
Joined: Tue Jan 15, 2013 11:54 am
Location: China, Beijing
Contact:

HTTPS request

Post 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?

rickyboy
Posts: 607
Joined: Fri Apr 08, 2005 7:13 pm
Location: Front Royal, Virginia

Re: HTTPS request

Post 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.
(λx. x x) (λx. x x)

csfreebird
Posts: 107
Joined: Tue Jan 15, 2013 11:54 am
Location: China, Beijing
Contact:

Re: HTTPS request

Post 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.

xytroxon
Posts: 296
Joined: Tue Nov 06, 2007 3:59 pm
Contact:

Re: HTTPS request

Post 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
"Many computers can print only capital letters, so we shall not use lowercase letters."
-- Let's Talk Lisp (c) 1976

csfreebird
Posts: 107
Joined: Tue Jan 15, 2013 11:54 am
Location: China, Beijing
Contact:

Re: HTTPS request

Post by csfreebird »

Thank you. That's what I want. I will try when free.

Locked