I currently use a simple winsock solution (WSAStartup, socket, connect, send, recv, closesocket) for HTTP-requests to get a 32 byte response of our own server.
Is there a performance or security reason to switch to WinHTTP or another library?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ease of use, thoroughly tested, feature-enrich, error checking, etc. The only security reason I can think of is if you do it yourself and you are not experienced enough you may leave yourself open to buffer overflows or other similar exploits. Depending on your ability a 3rd party library might be more efficient and therefore faster as well.
I would recommend using a 3rd party library unless you are confident enough in your own ability.