Impossible d'obtenir l'en-tête "Location" à partir de la réponse. Wireshark dit que j'ai un:Obtention de l'en-tête "Location" à partir de NSHTTPURLResponse
Lieu: http: //*/index.html#0; sid = 865a84f0212a3a35d8e9d5f68398e535
Mais
NSHTTPURLResponse *hr = (NSHTTPURLResponse*)response;
NSDictionary *dict = [hr allHeaderFields];
NSLog(@"HEADERS : %@",[dict description]);
génère ce:
HEADERS : {
Connection = "keep-alive";
"Content-Encoding" = gzip;
"Content-Type" = "text/html";
Date = "Thu, 25 Mar 2010 08:12:08 GMT";
"Last-Modified" = "Sat, 29 Nov 2008 15:50:54 GMT";
Server = "nginx/0.7.59";
"Transfer-Encoding" = Identity;
}
Aucun lieu géographique. Comment l'obtenir? J'ai besoin de cette "petite" chose.
Merci beaucoup! Ça m'a aidé! =) – aspcartman