简体   繁体   English

CURL Ubuntu发布请求未收到文件

[英]Curl Ubuntu Post Request Doesn't receive file

So I'm trying to download ventrilo from their website 所以我想从他们的网站下载ventrilo

http://www.ventrilo.com/dlprod.php?id=102

As far as I'm aware what I'm showing is identical to the request that the page makes when you click accept, does anyone know why this isn't working? 据我了解,我所显示的内容与您单击接受时页面发出的请求相同,有人知道为什么这不起作用吗?

curl -o ventrilo.tar.gz "http://dlx2.ventrilo.com/dl.php?server_linux_i386&8882453279444" -H 
"Origin: http://www.ventrilo.com" 
-H "Accept-Encoding: gzip,deflate,sdch" 
-H "Accept-Language: en-US,en;q=0.8" 
-H "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36(KHTML, like     Gecko)     Chrome/32.0.1700.107 Safari/537.36" 
-H "Content-Type: application/x-www-form-urlencoded" 
-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" 
-H "Cache-Control: max-age=0" -H "Referer: http://www.ventrilo.com/dlprod.php?id=102"
-H "Connection: keep-alive" --data "Download=I+Agree" --compressed

Notice this bold number from your POST url server_linux_i386& 8882453279444 . 请注意您的POST URL server_linux_i386& 8882453279444中的这个粗体数字。 Using the number they are tracking the session. 他们使用该号码跟踪会话。

There are two things can happen: 可能发生两件事:

1) May be you have collected the url from the page's source and tried after a long time when the session is expired. 1)可能是您已经从网页来源中收集了url,并在会话过期很长时间之后尝试了该URL。

2) May be you collected the url from your pc and tried to execute at your server(or vice-versa). 2)可能是您从PC收集了URL,并试图在您的服务器上执行(反之亦然)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM