HTTPS request

Started by csfreebird, February 03, 2013, 07:17:24 PM

Previous topic - Next topic

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

#1
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

#2
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.

xytroxon

#3
The cURL project should fit your needs.

http://curl.haxx.se/">//http://curl.haxx.se/



You need your system's version of libcurl with ssl enabled

http://curl.haxx.se/libcurl/">//http://curl.haxx.se/libcurl/



And one of these versions of curl.lsp



http://pastebin.com/Jngp4jpR">//http://pastebin.com/Jngp4jpR



https://gist.github.com/kosh04/1119771">//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

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