摘要:
1.GET请求:NSString *urlStr = [NSStringstringWithFormat:@"http://192.168.3.251/~apple/itcast/login.php?username=%@&password=%@",_userName.text,_password.text]; NSURL *url = [NSURL URLWithString:urlStr]; NSURLRequest *request = [NSURLRequestrequestWithURL:url]; NSURLConnection *connection 阅读全文