Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

OldGit

macrumors newbie
Original poster
I wish to send and receive binary data to a server via POST.

Somehow I need to send two integers (8 bytes), the server then returns binary records which I need to capture.

I have been looking into NSData, the documentation appears to suggest it can receive binary data from a URL with the method "dataWithContentsOfURL" ...

But the only method I see for sending is "writeToURL:atomically:" but the documentation then says "at present only file:// URLs are supported".

Am I barking up the wrong tree with NSData?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.