this post tells how to make a html form post to web server and get back response from web server. I have used open source library ASIHTTPRequest library from ASIHTTPRequest .First download the library and add to your XCode project as mention in the site.
Now to post form data use below code:
Since from the above code we have made form post to webserver in key ,value pair i.e name=test name and addr = test addr.since we have set delegate to self now use delegate method for success and failure for html form post.Now to post form data use below code:
That’s it now ,if you want to receive response the – (void)requestFinished:(ASIHTTPRequest *)request is called with response data.
No comments:
Post a Comment