Can somebody post some code example(code or link) of how to http authenticate from iphone objective c using xcode?
I wanna to go to my web application passing through POST login and passord and be able to return the response to validate it is authenticated or not
thanks
Sounds like you’re doing form-based authentication, passing credentials as POST variables. If you already have a third-party networking wrapper you’re using (such as AFNetworking), read its documentation to find out what facilities it has for sending POST variables.
If you want to roll your own, the basic process is:
NSMutableURLRequestwith the login URLsetHTTPMethod:method to set the request’s method to “POST”setHTTPBody:NSURLConnectionand receive the response using its synchronous or asynchronous API.