title: IOS 7 how to print the url response data
body: <p>I am trying to call a web service. I tried this</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view.
      NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://192.168.75.1:8082/projectname/public/tests"]];
      NSURLSessionConfiguration *configuration = [ NSURLSessionConfiguration ephemeralSessionConfiguration];
      NSURLSession *session = [NSURLSession sessionWithConfiguration:configuration];
      NSURLSessionDownloadTask *task = [session downloadTaskWithRequest:request completionHandler:^(NSURL *localFile, NSURLResponse *response, NSError *error) {
          if(!error){
              NSLog(@"no error");
  
          }else{
              NSLog(@"error");
          }
      }];
      [task resume];
  }
  </code></pre>
  
  <p>as you see there are two <code>nslog</code> statements. I got the <code>no error</code> one. </p>
  
  <p>when I call that web service from my safari, I got a simple string which is <code>index</code> printed in the browser, how can I see that string in my xcode please?</p>
  
  <p>Thanks</p>