I am porting a Windows C++ program that uses winhttp.h for HTTP POST and GET.
Please give suggestions on what I can use in C++ for Mac instead of winhttp.h.
Are you using Cocoa? You can use [NSUrlConnection class].
Otherwise, you can use a portable HTTP client in C or C++ such as CURL/LIBCURL.
: http://mywebsite.com/page.php?order=Bananas DESC
Why not use boost::asio? Simple to use and well designed C++ API for IP. Includes some samples for HTTP GET etc.