I am using ASIHTTPRequest 1.6.2 lib for all http transactions in IPhone. But i dont know, how can i post the data with ASIHTTPRequest in iPhone?
Can you please give me the code snippet which will work in in iphone?
I am using the following code for this. But i am getting response code as 0. Please help me to understand where i am going wrong.
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setPostValue:inputXml forKey:@"inputXml"];
[request setPostValue:@"qftS6TJN343343V84hw=" forKey:@"key"];
[request setPostValue:@"1.2" forKey:@"version"];
[request setRequestMethod:@"POST"];
[request startAsynchronous];
You should use ASIFormDataRequest: