Created
August 7, 2012 13:02
-
-
Save jlcampana/3285112 to your computer and use it in GitHub Desktop.
ASI HTTP Request + JSON Sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ASIHTTPRequest *req = [ASIHTTPRequest requestWithURL:URL]; | |
req.delegate = self; | |
req.userInfo = [NSDictionary dictionaryWithObject:@"initialRequest" forKey:@"type"]; | |
NSData *body = [jsonString dataUsingEncoding:NSUTF8StringEncoding]; | |
[req appendPostData:body]; | |
[req startSynchronous]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment