title: NSURLConnection: I'm trying to receive html page, but always get error 403
body: <p>I want to get html page and parse it.</p>
  
  <p>I send to <a href="http://gdata.youtube.com/feeds/api/videos?q=u_dAYLIG984" rel="nofollow">http://gdata.youtube.com/feeds/api/videos?q=u_dAYLIG984</a></p>
  
  <pre><code>NSURL* url = [NSURL URLWithString: fullPath];
  
  NSMutableDictionary* headers = [[[NSMutableDictionary alloc] init] autorelease];
  [headers setValue:@"application/x-www-form-urlencoded;charset=utf-8" forKey:@"Content-Type"];
  [headers setValue:@"text/html" forKey:@"Accept"];
  [headers setValue:@"no-cache" forKey:@"Cache-Control"];
  [headers setValue:@"no-cache" forKey:@"Pragma"];
  [headers setValue:@"close" forKey:@"Connection"];
  
  
  NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:TIMEOUT_REQUEST];
  [request setHTTPMethod:@"POST"];
  [request setAllHTTPHeaderFields:headers];
  
  conn = [[NSURLConnection alloc] initWithRequest:request delegate:delegate startImmediately:YES];
  </code></pre>
  
  <p>I always get 403 error. What is wrong ?</p>
  
  <p>EDITED:</p>
  
  <p>I tried my request on <a href="http://bbc.co.uk/" rel="nofollow">http://bbc.co.uk/</a> and it works well. My problem only with <a href="http://gdata.youtube.com/feeds/api/videos?q=u_dAYLIG984" rel="nofollow">http://gdata.youtube.com/feeds/api/videos?q=u_dAYLIG984</a></p>
  
  <p>EDITED2:</p>
  
  <p>@Christophe Debove, you are right. I changed my request from POST to GET and received 406 error. It became working when I deleted "Accept" header. It works even without google developer key.</p>