Jan 12, 2011 at 12:35pm UTC
I am porting a Windows C++ program to Mac. What should I use instead of winhttp.h for HTTP queries?
Thanks
Jan 12, 2011 at 1:21pm UTC
You can't use Windows API on non-Windows systems.
You need to change your code to POSIX or use a cross-platform library
Jan 13, 2011 at 12:36am UTC
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 Jan 13, 2011 at 12:47am UTC
Jan 13, 2011 at 3:41pm UTC
You can use libcurl(pp) instead.
Jan 17, 2011 at 5:55am UTC
Thanks, libcurl did the job.
Jan 23, 2011 at 2:39am UTC
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++.
Jan 23, 2011 at 4:15am UTC
Except It still drives me crazy, and I went straight back to C++. :P
Last edited on Jan 23, 2011 at 4:16am UTC
Jan 23, 2011 at 7:25pm UTC
I am still in the crazy period and I am not sure if I ever get to the next level :)