Hey all,
I am trying to get the user agent but when I try and read it, it comes out (null)
Code:
NSLog(@"user agent = %@", [request valueForHTTPHeaderField: @"User-Agent"]);
request is an NSURLRequest. So I tried to get the http headers and I don't think there are any. When I use
Code:
NSLog(@"http headers = %d", [[req allHTTPHeaderFields] fileSize]);
it prints out zero. req is an NSMutableURLRequest. Does anyone know why this is happening.
Thanks
Clinton