摘要: 可以使用NSURLConnection的类来执行HTTP请求,登录该网站,并检索的cookie。要执行一个请求,只是创建一个NSURLConnection的实例,并分配给它的委托对象。NSURLRequest*request=[NSURLRequestrequestWithURL:[NSURLURLWithString:@"http://www.google.com/"]];NSURLConnection*connection=[NSURLConnectionconnectionWithRequest:request delegate:self];然后,执行一个委托方法。- 阅读全文
posted @ 2013-11-19 19:17 木饭 阅读(446) 评论(0) 推荐(0) 编辑