currently I'm doing POST-requests via HTTP which is quite easy: - open network connection to server - send some ASCII-data according to HTTP POST specification - receive ASCII-data and parse them

Now I want to do the same but via a secure HTTPS-connection and by using a custom, locally provided root-certificate. Since I do not want to do the whole key exchange/encryption handling manually: what library could I use for this? It should be open source, available for Windows and Linux and should come with a non-restrictive license (some LGPL-type or GPL with linking exception).

Any recommendations for this?

Thanks!

有帮助吗?

解决方案

An obvious choice is libcurl. Handles HTTP for you, as well as HTTPS via OpenSSL or GnuTLS; easy to use; works on a wide variety of operating systems; MIT licensed.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top