Is there a way to get the actual data to be sent when the NSURLConnection sends the NSURLRequest? Right now I'm mostly interested in HTTP and HTTPS requests, but since NSURLRequest works for many protocols, there seems to be a general way to see the relevant data for any type of request.
I missed something or I need to build a query myself by combining headers, body, etc.
To be clear, I would like to do this programmatically, rather than watching what appears on the server.
Update: At this point, I wrote code that effectively creates a query using data in NSURLRequest, so I am not asking how to do this. However, I would still like to know if there is a way to access the request stream that the URL loading system will generate. In other words, can I access the exact bytes to be sent if the NSURLConnection should have sent my NSURLRequest?
Caleb source share