我的代码
[请求回复头 对象Key: @ "Set-Cookie"
以及这些结果
cookiename1=1234; 路径=/; httply, cookiename2=1234; 路径=/; httply
< 加固> 如何只获得 cookiename1 的值? 加固 >
提前感谢。
我的代码
[请求回复头 对象Key: @ "Set-Cookie"
以及这些结果
cookiename1=1234; 路径=/; httply, cookiename2=1234; 路径=/; httply
< 加固> 如何只获得 cookiename1 的值? 加固 >
提前感谢。
ASIHTTP 请求 我相信这是一个已绝迹的工程, 也许考虑使用另一个项目? 我真的很喜欢使用 < a href="https://github.com/ AFNetworking/ AFNetworking/"" rel="nown" >AFNetworking
您需要那块饼干做什么? 我相信 Set -Cookie 下的饼干应该自动由图书馆为您设置 。
如果您真的需要查看结果, 它只是一个字符串, 所以您需要做一些字符串解析。 通常的表达式可能是最好的。 我相信这个例子可能有效, 但我不确定。 目前我无法测试, 事实上目前我甚至没有 X 代码可用 。 因此非常可能有些语法错误 :
NSError *error = nil;
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"cookiename1=*;" options:0 error:&error];
NSTextCheckingResult *result = [regex firstMatchInString:cookies options:0 range:NSRangeFromString(cookies)];
NSString *stringResult = [cookies substringWithRange:[result range]];
然后,从那里,你有饼干 从 cookie name1 =... ; 您可以提取它。 删除尾端的分号, 最后在“ = ” 上分割, 您可以得到饼干的值 。
I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...
HI, In our application i am using corelocationframework when opening application a alert for allow and dont allow.when clicking on the allow for current location we will show current location.When ...
Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...
我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......
我希望我与四舍五入的累进角进行网上讨论。
我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。
We have a restaurant table that has lat-long data for each row. We need to write a query that performs a search to find all restaurants within the provided radius e.g. 1 mile, 5 miles etc. We have ...
I like to write bash shell scripts on my iPhone, put them in an app folder with an icon, plist, etc., so they execute like apps by tapping their icon on SpringBoard. This is not interactive like ...