我正在嘗試找出下載該文件的方法:
zoiper5_5.2.6_x86_64.tar.xz
從這個連結:
https://www.zoiper.com/en/voip-softphone/download/zoiper5/for/linux
分別來自該網頁:
https://www.zoiper.com/en/voip-softphone/download/current
其中需要點選 Linux Download -> Free -> tar.xz
Package。
我嘗試過的:
curl -JLO https://www.zoiper.com/en/voip-softphone/download/zoiper5/for/linux
wget --user-agent=Mozilla --content-disposition -E -c https://www.zoiper.com/en/voip-softphone/download/zoiper5/for/linux
PS:如果您下載該文件,請注意它實際上是bz2
文件。我知道有點瘋狂:-)
答案1
要下載該文件,您需要一個名為 的 cookie PHPSESSID
。
首先,儲存cookie:
curl \
-c cookie.txt \
-o /dev/null \
https://www.zoiper.com/en/voip-softphone/download/current
然後,使用該 cookie 並下載檔案:
curl \
-b cookie.txt \
-o zoiper5_5.2.6_x86_64.tar.xz \
https://www.zoiper.com/en/voip-softphone/download/zoiper5/for/linux
你也可以這樣做流程替代避免寫入 cookie 檔案:
curl -b <( curl -c - -o /dev/null https://www.zoiper.com/en/voip-softphone/download/current ) -o zoiper5_5.2.6_x86_64.tar.xz https://www.zoiper.com/en/voip-softphone/download/zoiper5/for/linux