Country
Country

Reputation: 485

Sending http and https requests from C/C++

Is there any other variants to send http/https request from C/C++ except using libCurl? I can't figure out how to use libCurl with OpenSSL :( I want to interact with YoutubeAPI.

Upvotes: 4

Views: 24250

Answers (4)

moka
moka

Reputation: 4491

there are alot of c++ libs out there to do that, anyways I agree that libCurl is one of the easiest and most lighweight solutions, and thus i'd recommend using it. If you want to look for an alternative anyways you might want to check out poco: http://pocoproject.org/

Upvotes: 0

Seb Holzapfel
Seb Holzapfel

Reputation: 3873

SFML has a nice, simple to use in-built HTTP implementation. You can find a tutorial here. It looks to me that for youtube you can simply use POST - look here.

Upvotes: 2

Tobias Schlegel
Tobias Schlegel

Reputation: 3970

You didn't say on which platform.

On windows there is also the WinInet-API which handles ssl transparently and uses the windows-built-in-certificates:

http://msdn.microsoft.com/en-us/library/aa384233%28VS.85%29.aspx

libcurl is imho a much friendlier API though.

Upvotes: 1

IneQuation
IneQuation

Reputation: 1264

Perhaps these two examples will be of help to you?

http://curl.haxx.se/libcurl/c/https.html

http://curl.haxx.se/libcurl/c/simplessl.html

Upvotes: 2

Related Questions