iphone Programming Glossary: httprequestoperationwithrequest
AFNetworking Uploading a file http://stackoverflow.com/questions/8234186/afnetworking-uploading-a-file myNSDataToSend mimeType @ image jpeg name @ alleagto AFHTTPRequestOperation operation AFHTTPRequestOperation HTTPRequestOperationWithRequest myRequest success ^ id object NSLog @ Success failure ^ NSHTTPURLResponse response NSError error NSLog @ Fail operation.. @ image jpeg name @ alleagto At the myNSDataToSend. And here AFHTTPRequestOperation operation AFHTTPRequestOperation HTTPRequestOperationWithRequest myRequest success ^ id object NSLog @ Success failure ^ NSHTTPURLResponse response NSError error NSLog @ Fail The error.. id object NSLog @ Success failure ^ NSHTTPURLResponse response NSError error NSLog @ Fail The error is Class method ' HTTPRequestOperationWithRequest success failure' not found return type defaults to 'id' Any help on this and uploading with AFNetworks would be amazing...
How do I set the data for a “PUT” request with AFNetworking? http://stackoverflow.com/questions/9003545/how-do-i-set-the-data-for-a-put-request-with-afnetworking request self requestWithMethod @ POST path path parameters parameters data data AFHTTPRequestOperation operation self HTTPRequestOperationWithRequest request success success failure failure self enqueueHTTPRequestOperation operation void putPath NSString path parameters.. request self requestWithMethod @ PUT path path parameters parameters data data AFHTTPRequestOperation operation self HTTPRequestOperationWithRequest request success success failure failure self enqueueHTTPRequestOperation operation NSMutableURLRequest requestWithMethod..
|