Inet GetHeader("set-cookie") 问题
我使用抓包工具抓到一下数据。=================================HTTP/1.1302FoundDate:Sun,23Mar20081616...
我使用抓包工具抓到一下数据。
=================================
HTTP/1.1 302 Found
Date: Sun, 23 Mar 2008 16 16:58:14 GMT
Server: Test Login Server/2.0.0
Set-Cookie: ptgguin=o0910077; EXPIRES=Fri, 02-Jan-2020 00:00:00 GMT; PATH=/; DOMAIN=test.com;
Set-Cookie: uin=o0910077; PATH=/; DOMAIN=test.com;
Set-Cookie: skey=@tM1sUmQOu; PATH=/; DOMAIN=test.com;
Set-Cookie: clientuin=; EXPIRES=Fri, 02-Jan-1970 00:00:00 GMT; PATH=/; DOMAIN=test.com;
Set-Cookie: clientkey=; EXPIRES=Fri, 02-Jan-1970 00:00:00 GMT; PATH=/; DOMAIN=test.com;
Set-Cookie: airkey=d1529537aa9621534f04f17c9316d47e796a5a36e46a4f02c4d254c8edd4fa39; EXPIRES=Fri, 02-Jan-2020 00:00:00 GMT; PATH=/; DOMAIN=ptlogin.test.com;
Location: https://password.test.com/cgi-bin/dj_redirect?w=1
Connection: Close
Content-Type: text/html
==========================================
数据中有6条 “set-cookie”的值。我使用VB Inet.GetHeader("set-cookie")只能取得第一条“Set-Cookie: ptgguin=o0910077; EXPIRES=Fri, 02-Jan-2020 00:00:00 GMT; PATH=/; DOMAIN=test.com;”
请问各位达人用什么办法可以取得所有的set-cookie的值? 展开
=================================
HTTP/1.1 302 Found
Date: Sun, 23 Mar 2008 16 16:58:14 GMT
Server: Test Login Server/2.0.0
Set-Cookie: ptgguin=o0910077; EXPIRES=Fri, 02-Jan-2020 00:00:00 GMT; PATH=/; DOMAIN=test.com;
Set-Cookie: uin=o0910077; PATH=/; DOMAIN=test.com;
Set-Cookie: skey=@tM1sUmQOu; PATH=/; DOMAIN=test.com;
Set-Cookie: clientuin=; EXPIRES=Fri, 02-Jan-1970 00:00:00 GMT; PATH=/; DOMAIN=test.com;
Set-Cookie: clientkey=; EXPIRES=Fri, 02-Jan-1970 00:00:00 GMT; PATH=/; DOMAIN=test.com;
Set-Cookie: airkey=d1529537aa9621534f04f17c9316d47e796a5a36e46a4f02c4d254c8edd4fa39; EXPIRES=Fri, 02-Jan-2020 00:00:00 GMT; PATH=/; DOMAIN=ptlogin.test.com;
Location: https://password.test.com/cgi-bin/dj_redirect?w=1
Connection: Close
Content-Type: text/html
==========================================
数据中有6条 “set-cookie”的值。我使用VB Inet.GetHeader("set-cookie")只能取得第一条“Set-Cookie: ptgguin=o0910077; EXPIRES=Fri, 02-Jan-2020 00:00:00 GMT; PATH=/; DOMAIN=test.com;”
请问各位达人用什么办法可以取得所有的set-cookie的值? 展开
2个回答
展开全部
用Inet.GetHeader函数只能取第一个,
用Inet.GetHeaders可以去所有键值的列表。
Function GetHeaders(ByVal numBodyLines As Integer, ByVal fromIndex As Integer, ByVal toIndex As Integer) As EmailBundle
--------------------------------------------------------
Inet GetHeader("set-cookie") 问题
Inet GetHeader("set-cookie") 问题
Inet GetHeader("set-cookie") 问题
Inet GetHeader("set-cookie") 问题
用Inet.GetHeaders可以去所有键值的列表。
Function GetHeaders(ByVal numBodyLines As Integer, ByVal fromIndex As Integer, ByVal toIndex As Integer) As EmailBundle
--------------------------------------------------------
Inet GetHeader("set-cookie") 问题
Inet GetHeader("set-cookie") 问题
Inet GetHeader("set-cookie") 问题
Inet GetHeader("set-cookie") 问题
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询