【发布时间】:2010-03-25 08:21:12
【问题描述】:
根本无法从响应中获取“位置”标头。 Wireshark 说我有一个:
地点: 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”的东西。
【问题讨论】:
标签: objective-c iphone-sdk-3.0