Reputation: 13567
I need to access a HTTPS protected website (HTML or XML) from an C++ MFC application and I would like an easy solution. But I did a little research and it's seems to me HTTPS and C++ don't play nice and easy together.
Is there any recommended class library for HTTPS web access? Should be easy to use and not too expensive.
Upvotes: 7
Views: 2315
Reputation: 19642
Additionally check out www.chilkatsoft.com . They have good, easy to use components to do this sort of stuff. Much easier to use than libcurl (or even wininet), and not expensive. I've used their FTP/S component, very nice to use. Free trial.
Upvotes: 0
Reputation: 24375
...
hOpen = InternetOpen (...);
Connect = InternetConnect (
hOpen, // InternetOpen handle
"MyHttpServer", // Server name
INTERNET_DEFAULT_HTTPS_PORT,// Default HTTPS port - 443
"", // User name
"", // User password
INTERNET_SERVICE_HTTP, // Service
0, // Flags
0 // Context
);
hReq = HttpOpenRequest (
hConnect, // InternetConnect handle
"GET", // Method
"", // Object name
HTTP_VERSION, // Version
"", // Referrer
NULL, // Extra headers
INTERNET_FLAG_SECURE, // Flags
0 // Context
);
...
Upvotes: 5