本帖最后由 codegay 于 2016-5-6 13:28 编辑
回复 65# CrLf
bcn 下载的curl不支持--compressed参数
以下命令代码是从chrome复制出来的。- curl "http://ing.cnblogs.com/ajax/ing/Publish" -H "Cookie: .CNBlogsCookie=sxxxxxxxAF2203F849339E8DEFF67BC4A462DE7330C830AC373CAC83BAAF2312B975279092095A0E143400E82BBEE189BD5CB8826CA6A6E836F69EC5783C410C2B815A833D5816CEB5B457B159A38F; pgv_pvi=3244089344; pgv_si=s6204289024; SyntaxHighlighter=python; _ga=GA1.2.1497453823.1462420801" -H "Origin: http://ing.cnblogs.com" -H "Accept-Encoding: gzip, deflate" -H "Accept-Language: zh-CN,zh;q=0.8,en;q=0.6" -H "User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36" -H "Content-Type: application/json; charset=UTF-8" -H "Accept: application/json, text/javascript, */*; q=0.01" -H "Referer: http://ing.cnblogs.com/" -H "X-Requested-With: XMLHttpRequest" -H "Connection: keep-alive" -H "DNT: 1" --data-binary "{""content"":""[天上的星星不说话]%s"",""publicFlag"":1}" --compressed
复制代码 执行的时候提示:- curl: option --compressed: the installed libcurl version doesn't support this
复制代码
|