如何使用 cURL 命令列下載隱藏連結的檔案(僅在單擊時啟動)

如何使用 cURL 命令列下載隱藏連結的檔案(僅在單擊時啟動)

我指的是這個問題。但是,我想知道如何對curl.

到目前為止,我已經嘗試了以下方法:

curl -O output.rar --referer http://subs.sab.bz/ 'http://subs.sab.bz/index.php?s=ece2929c25861a7244025e1628e7ee5a&act=download&attach_id=75766'

我也嘗試過使用-eswitch,但它對我不起作用。誰能幫我嗎?

提前致謝!

答案1

我發現如果我只是:

url='http://subs.sab.bz/index.php?s=ece2929c25861a7244025e1628e7ee5a&act=download&attach_id=75766'
curl -e "$url" "$url" >out.rar

然後我可以:

unrar e out.rar

結果是:

Extracting from out.rar

Extracting  Dominion.S01E01.720p.HDTV.X264-DIMENSION.srt              OK
Extracting  Dominion.S01E01.HDTV.x264-LOL.srt                         OK
Extracting  Dominion.S01E01.HDTV.XviD-AFG.srt                         OK
Extracting  - README - subs.sab.bz - Brought to you by  xen.headoff.com -.html
  OK
All OK

所以它似乎完全願意接受下載連結本身作為引用者。

相關內容