Http get 请求
代码如下:
// 组合一个搜索字符串
NSString *urlStr = [NSString stringWithFormat:@”http://www.baidu.com/s?wd=%@”, @”php”];
// 字符串转化为URL
NSURL *url = [NSURL URLWithString:urlStr];
// NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
// [request setURL:url];
//