winhttp.h for Mac

I am porting a Windows C++ program to Mac. What should I use instead of winhttp.h for HTTP queries?
Thanks
You can't use Windows API on non-Windows systems.
You need to change your code to POSIX or use a cross-platform library
well considering he asked what should he uses instead of winhttp.h, I think he realized this.


edit: Sillik, I'd link to some libraries but that branch of software development I am not well versed in :\
Last edited on
You can use libcurl(pp) instead.
Thanks, libcurl did the job.
If you're actually writing a MAC program, you may want to look at NSURLRequest and NSURLResponse. Objective-C will drive you crazy for 2 weeks, and then you'll never want to go back to C++.
Except It still drives me crazy, and I went straight back to C++. :P
Last edited on
I am still in the crazy period and I am not sure if I ever get to the next level :)
Topic archived. No new replies allowed.