Reputation: 111339
Do you know of any HTTP client library in C (with SSL support) that also allows direct communication with the remote server?
I have a client-server application where the client uses HTTP to start a session in the server and then tells the server to switch the connection from HTTP to a different protocol. All communication is encapsulated in SSL. It is written in Perl and works well, but I'm looking into implementing the client in C.
I know libcurl gives you access to the underlaying socket but it's not enough because of the SSL requirement.
Upvotes: 0
Views: 653
Reputation: 106
I think that you must be looking for this otherwise you must have to write it yourself, like this
Upvotes: 1
Reputation: 16049
Notice that libcurl doesn't do the SSL part by itself, it uses OpenSSL. So, if you can get the socket handle from libcurl after the first HTTP interactions, AND the session key it uses (some spelunking required) you can go on directly with OpenSSL from that point.
Upvotes: 1
Reputation: 47649
Sounds like you want Web Sockets. Don't know if there's a C library available though. I would assume there is, if you dig.
Upvotes: 0