【发布时间】:2013-03-19 13:28:53
【问题描述】:
我正在尝试使用 cURL 以 URL 的形式获取数据:
http://example.com/site-explorer/get_overview_text_data.php?data_type=refdomains_stats&hash=19a53c6b9aab3917d8bed5554000c7cb
它需要一个cookie,所以我先将它存储在一个文件中:
curl -c cookie-jar http://example.com/site-explorer/overview/subdomains/example.com
使用这些值尝试 curl:
curl -b cookie-jar -A "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" --referer "http://example.com/site-explorer/overview/subdomains/example.com" http://example.com/site-explorer/get_overview_text_data.php?data_type=refdomains_stats&hash=19a53c6b9aab3917d8bed5554000c7cb
【问题讨论】:
-
真正的问题是什么?怎么了?