Windows C++ Should I use WinHttp library or XmlHttp from MSXML? -


A simple question asked to do a web service in my code ++ program WinHttp library Should I use the IXmlHttpRequest interface in the mxxml web service request? Clearly, the WinHttp library provides much more precise control than library IXmlHttpRequest . But the XmlHttpRequest object is a w3.org standard and more portable in theory.

It depends on whether you are accessing the service on a secure channel, ie HTTPS or simple one i.e. HTTP

According to MSDN ( http://msdn.microsoft.com/en-us/library/ms891732.aspx ), IXMLHttpRequest only supports HTTP

Note IXMLHTTPRequest does not support secure website access. To access a secure website, use the WinINet API.

But the WinInet API is very old and there are some multi-threading problems (I think its on MSDN

Note: libcurl and curlpp (c ++ port)

to check libcurl) is also there. For this http://stackoverflow.com/questions/1011339/how-do-you-make-a-http-request-with-c


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -