可以用下面的方法保存www.baidu.com 的cookie,但页面中有javascript生成cookie时,firefox的工具-页面信息中有显示但好像curl识别不了 我curl的那个页面嵌套了http://www.google-analytics.com/urchin.js ,它也设置了一些cookies
btw 我是想现用cURL熟悉一下 登录bbs 及 发帖 发送的数据post 过程 再用python去编写
curl 官方页面上说“Some web-based login systems features various amounts of javascript, and
sometimes they use such code to set or modify cookie contents. Possibly they
do that to prevent programmed logins, like this manual describes how to...
Anyway, if reading the code isn't enough to let you repeat the behavior
manually, capturing the HTTP requests done by your browers and analyzing the
sent cookies is usually a working method to work out how to shortcut the
javascript need.”
是不是必需人工处理啊 顺便问一下,firefox cookie 默认保存在哪个文件夹 ,自己先去找找
发帖时 我把用wireshark抓取的头(浏览器中发帖,包含cookie) 加上 发帖内容等 post 给发帖的 /cgi-bin/.... 显示没有登录 ,浏览器没有关,并且也用curl登录了,只是没有获取cookie
谢谢各位善良坛友的阅读 期待cURL高手指教
:~$ curl -c baiducookie www.baidu.com
################################baidu cookie#########
# Netscape HTTP Cookie File
# http://curlm.haxx.se/rfc/cookie_spec.html
# This file was generated by libcurl! Edit at your own risk.
.baidu.com TRUE / FALSE 2147483647 BAIDUID 7522B475D7A6073ADC0566A7B7A4150B:FG=1
[问题]cURL抓取javascript 生成的cookie的问题
- onedayoneday
- 帖子: 26
- 注册时间: 2008-04-24 17:02
- onedayoneday
- 帖子: 26
- 注册时间: 2008-04-24 17:02
- solcomo
- 帖子: 2838
- 注册时间: 2007-04-25 13:12
- onedayoneday
- 帖子: 26
- 注册时间: 2008-04-24 17:02
- onedayoneday
- 帖子: 26
- 注册时间: 2008-04-24 17:02