I need a simple example where we POST some HTTP request to the server. And also i need to add some headers to that HTTP post. I have tried posting the HTTP post, but little confused about adding headers in the request. Is there any mandatory field/HEADER i have to add in the HTTP Post ??
Share
Suppose you have an
NSURLRequestcalledtheRequest.You configure the request type to POST with
And for the headers, you add values to the Header you add them as key value pairs:
which sets
authorizationStringfor theAuthorizationheader.