I have a php code running on my server that i call my web service.It processes the data in send integer value.How can i get that?Here is my request url :
NSString *requestURL=[NSString stringWithFormat:@"%@?u=%@& p=%@&platform=ios",url,txtUserName.text,txtPassword.text];
Update Comment : I have a php file on my server.It takes 3 arguments and register my users and returns value like 1(for success,2 for duplicate).I need to send request to my server as :
url="http://smwebtech.com/Pandit/web_service/signup.php?u=Test&p=password&platform=ios"
How can i send this request to server and get the return value from server?
You can use NSURLConnection. You should use implement the
NSURLConnectionDataDelegateprotocol and use theNSURLConnectionclass.