HTTPS library for Maemo
I am looking for a C/C++ library I can use on the N900 where I can pass it a HTTPS URL (including being able to feed it form POST data) and get back whatever the result is as data (byte array, something like that). Ideally it should be something that's on the phone by default or something I can link statically or easily include with my own tool.
Not sure yet if I will be using QT or GTK for the eventual UI that will be written for this (not sure which will be easier to learn in the context of the N900 although I do have a copy of "C++ GUI Programming with Qt 4 (2nd Edition)" so maybe QT is the way to go for UI) |
Re: HTTPS library for Maemo
I don't understand what you would like to achieve but I guess you should go with openssl and libcrypto library.
QT 4.x is also using the openssl api. But I guess going directly with openssl you have more control. I need to dig through the data on my hard drive, I should have an ssl analyser app in qt for the N900 somewhere. |
Re: HTTPS library for Maemo
|
Re: HTTPS library for Maemo
2 Attachment(s)
What do you mean with POST data? Do you plan making a server and a client application for an own data stream exchange?
So here is a small sslinfo application in qt. I used it to find a bug in qt. Now for today I changed the output to stdout. Code:
./sslinfo talk.maemo.org 443 Code:
Connecting... The binary is for the N900. |
Re: HTTPS library for Maemo
By "post data" I mean the data that gets sent when you have method="post" on a HTML form tag.
Right now I can do wget --post-file=post.txt https://blah and get back some JSON data. I want to do the same thing in code (generate the contents for the form post data, retrieve the URL and then get the results back) What is going on on the other end doesn't matter, I just need a library that the N900 can use that can retrieve this data for me easily. libsoup is in the repos but it has HTTPS turned off so that's not an option. Using OpenSSL directly looks too complicated. I just want a simple library that does the work for me without needing to care about the SSL connection, certificates, https or anything else. |
Re: HTTPS library for Maemo
Looks like the "easy API" for libcurl might be the way to go.
|
Re: HTTPS library for Maemo
Have gotten libcurl working and now need to find something that can parse JSON data... :)
|
All times are GMT. The time now is 10:15. |
vBulletin® Version 3.8.8