无法从响应获取“位置”标题。 Wireshark的说,我有一个:从NSHTTPURLResponse获取“位置”标题
地点: HTTP://*/index.html#0; SID = 865a84f0212a3a35d8e9d5f68398e535
但
NSHTTPURLResponse *hr = (NSHTTPURLResponse*)response;
NSDictionary *dict = [hr allHeaderFields];
NSLog(@"HEADERS : %@",[dict description]);
产生以下:
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;
}
任何地方都没有位置。如何得到它?我需要这个“sid”的东西。
非常感谢你!它帮助! =) – aspcartman 2010-03-26 10:51:28