Reputation:
I want to send an email address(will be getting from textfield) to http url by clicking a send button from an application which is already logged in at the same http server. How can I do that programmatically?
Upvotes: 0
Views: 72
Reputation: 4835
u can do this with ASIHTTPRequest library. here is a sample code
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setPostValue:@"Ben" forKey:@"first_name"];
[request setPostValue:@"Copsey" forKey:@"last_name"];
[request setFile:@"/Users/ben/Desktop/ben.jpg" forKey:@"photo"];
Upvotes: 1