Created
August 24, 2010 02:58
-
-
Save marshluca/546837 to your computer and use it in GitHub Desktop.
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
NSURL *url = [NSURL URLWithString:@"http://api.woyiwang.com:4001/test_post_login"]; | |
NSString *body = [NSString stringWithFormat: @"param1=%@¶m2=%@",value1,value2]; | |
NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url]; | |
[theRequest setHTTPMethod:@"POST"]; | |
[theRequest setHTTPBody: [body dataUsingEncoding: NSUTF8StringEncoding]]; | |
NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:theRequest delegate:self]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment