You mix things here. You create an ASIFormDataRequest , but you are not actually sending it. What you submit is NSURLConnection .
It has been a long time since I used ASI, but this could help:
NSURL *mainurl = [NSURL URLWithString:@"http://xxxxxxxxxx/api/PhonePaymentApi/Transaction/"]; ASIFormDataRequest *requestt = [ASIFormDataRequest requestWithURL:mainurl]; [requestt addPostValue:GETUnicidentifire forKey:@"UniqueId"; [requestt addPostValue:JsonOrderDetail forKey:@"jsonProduct"; [requestt addPostValue:BranchId forKey:@"BranchId"; [requestt addPostValue:OrderToTime forKey:@"OrderToTime"; [requestt setCompletionBlock:^{
As a tip, replace the ASI with something like AFNetworking. ASI is no longer being developed.
Jeffery thomas
source share