I did not actually try this myself, but have a look at "PostController.m" in the SimpleURLConnections sample project from the Apple Developer Library.
It shows how to create a socket pair where the reading end (consumerStream
in the sample code) is used as HTTPBodyStream
for the URL request, and you can write your data to the writing end (producerStream
).