http://www.sufeinet.com/plugin.php?id=keke_group

苏飞论坛

 找回密码
 马上注册

QQ登录

只需一步,快速开始

分布式系统框架(V2.0) 轻松承载百亿数据,千万流量!讨论专区 - 源码下载 - 官方教程

HttpHelper爬虫框架(V2.7-含.netcore) HttpHelper官方出品,爬虫框架讨论区 - 源码下载 - 在线测试和代码生成

HttpHelper爬虫类(V2.0) 开源的爬虫类,支持多种模式和属性 源码 - 代码生成器 - 讨论区 - 教程- 例子

查看: 3228|回复: 1

[HttpHelper] 网站登录,post时取到的cook和cook自动提取器中区别问题

[复制链接]
发表于 2016-8-29 19:01:54 | 显示全部楼层 |阅读模式
网站访问需要带cookie
我用httphelper做了一个post网站自动登录,并取登录时返回的cookie(称一),网站访问时设置cookie(一)之后访问,没有成功,
我用苏飞开发工具中的cookie自动提取器,取网站登录之后的网站cookie(称二),网站访问设置用cookie(二)后就能顺利访问,
问题是:请问飞哥,如何在post登录时就能同时取cookie(二)呢?
登录网站是www .ppdai.com,


以下是cookie(一)
uniqueid=208bfd8c-9b60-4472-9906-c93b2116b8f0; domain=ppdai.com; expires=Tue, 29-Aug-2017 10:30:31 GMT; path=/,qlui_loginuname=*****(账户名,手动隐藏); domain=ac.ppdai.com; expires=Thu, 29-Sep-2016 10:30:31 GMT; path=/,authid=D83B3DFD5139BE43ABFE10211154BE551899C3C5E5487DB4408072BFB7F52B01ED3F37BBFD4D668DDB120E58528DC14DA453603BEBF62035E5B9512230919E5D431844F5B311CD9F469AE5E742E4FB03783E93B6FDB3474E9D852B79F0C93DF87698EEF632EED40996D855467ECF7A375409AA0499918F04C17AC3899DDAE03F6B31C04B3AC63314D657D96EFC9B771A0E21877F1DE66FE4E5C89E9E7C563A9B533D5D89E66B1421C455AB3B49873A449173EF16228C3B0019828B5807457824080D7A9F; domain=ppdai.com; expires=Wed, 31-Aug-2016 22:30:34 GMT; path=/; HttpOnly,token=89df4a93-9dcf-4c77-abda-a5d4ff6e91c8; domain=ppdai.com; path=/,__eui=96qqvG6Gne%2fIQBKMJucP9Q%3d%3d; domain=ppdai.com; path=/,ppd_uname=pdu020*******; domain=.ppdai.com; expires=Thu, 29-Sep-2016 10:30:34 GMT; path=/

以下是cookie(二):
uniqueid=985233ac-cee1-4a9a-8f9b-a28388de2e9a; ppd_uname=pdu020*******; Hm_lvt_aab1030ecb68cd7b5c613bd7a5127a40=1472098415,1472098448,1472457635,1472459447; __fp=65f15047a6dcdbf30f76b21192e15130; __vid=743773316.1467618245426; __vsr=1467618245426.src%3Ddirect%7Cmd%3Ddirect%7Ccn%3Ddirect%3B1472096561106.refSite%3Dhttp%3A//www.ppdai.com/%7Cmd%3Dreferral%7Ccn%3Dreferral%3B1472115506104.refSite%3Dhttp%3A//invest.ppdai.com/account/lend%7Cmd%3Dreferral%7Ccn%3Dreferral%3B1472117566718.refSite%3Dhttp%3A//www.ppdai.com/%7Cmd%3Dreferral%7Ccn%3Dreferral%3B1472457634587.src%3Ddirect%7Cmd%3Ddirect%7Ccn%3Ddirect; Hm_lvt_f87746aec9be6bea7b822885a351b00f=1472098416,1472098448,1472457873,1472459448; _ppdaiWaterMark=14676182469485; peiflag=true; _ga=GA1.2.827249850.1467618270; currentUrl=http%3A%2F%2Finvest.ppdai.com%2Faccount%2Flend; regSourceId=0; referID=0; fromUrl=; referDate=2016-8-12%2012%3A9%3A47; ppdaiRole=4; PageVerison=2; waterMarkTimeCheck1=08%2f29%2f2016+09%3a54%3a06; __sid=1472459446494.1.1472459446494; _gat=1; authid=37C591C49FAA842405926E8849ED10A9263C190729DCB2163363E8CD8BF4C62D0A18BC0D6D5BBD2D5B5ED11734BDA3748D886A5AA4964C81598429905D5D9259E9878B4184465D827D620E2FD2309528A3A340F13BC728C5DAD2348674212650A989F1CCFD0FDEE4E97A542585BC40ACC3479DB99731AB1DDBD72EE61CE4F4A00B2E8C350334DE7BEBC156CFB47334AC5BEE481C73732B34B327D46C392A61BFAB4D42145FAEFDA9DA800C1A9EA8AA3FF1F848BE; token=004ebcfb-3f04-49dc-b977-7079b47cc8fb; __tsid=200643318; Hm_lpvt_aab1030ecb68cd7b5c613bd7a5127a40=1472459447; Hm_lpvt_f87746aec9be6bea7b822885a351b00f=1472459448; ss-pid=qaU5bukRMQFgDqaURMqg; ss-id=Cim2b61L47ijZxqT1R0P




1. 开通SVIP会员,免费下载本站所有源码,不限次数据,不限时间
2. 加官方QQ群,加官方微信群获取更多资源和帮助
3. 找站长苏飞做网站、商城、CRM、小程序、App、爬虫相关、项目外包等点这里
您需要登录后才可以回帖 登录 | 马上注册

本版积分规则

QQ|手机版|小黑屋|手机版|联系我们|关于我们|广告合作|苏飞论坛 ( 豫ICP备18043678号-2)

GMT+8, 2024-11-23 09:52

© 2014-2021

快速回复 返回顶部 返回列表