- (void)main { NSURL * url = [[NSURL alloc] initWithString:@"http://www.yahoo.co.jp"]; NSURLRequest * req = [[NSURLRequest alloc] initWithURL:url]; NSURLConnection * conn = [[NSURLConnection alloc] initWithRequest:req delegate:self]; if(conn){ NSLog(@"Connection Success."); } else { NSLog(@"Connection Error."); } } -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data{ NSLo