Reputation: 2311
I am using ASIFormDataRequest
to post to web service. Now my server programmer says I should set HTTP headers and pass folowing parameters: username='value'
and password='value'
. This is because the web service uses authentication. How should i do this?
Upvotes: 0
Views: 245
Reputation: 108101
[request addBasicAuthenticationHeaderWithUsername:@"yourUsername"
andPassword:@"yourPassw"];
For more information about HTTP Authentication check out the ASIHTTP documentation about it.
Upvotes: 2