I m a new comer to the iPhone world,m working on an application having login page,i have to send UIText value of username and Passworld value to the server...plz help me out,code would b appreciated
Look into using the ASIHTTPRequest framework to make POST requests.
you can check the user_ name & password from the severer ASIHTTPRequest framework it's the ex. of code which from the twitter request.m file
if ([challenge previousFailureCount] == 0) { NSURLCredential *newCredential; newCredential=[NSURLCredential credentialWithUser:[self username] password:[self password] persistence:NSURLCredentialPersistenceNone]; [[challenge sender] useCredential:newCredential forAuthenticationChallenge:challenge]; [newCredential release]; } else { [[challenge sender] cancelAuthenticationChallenge:challenge]; // inform the user that the user name and password // in the preferences are incorrect NSLog(@"Invalid Username or Password"); }