I am trying to figure out a way to download this file:


from this link:


from this web page respectivelly:


where man needs to click on Linux Download -> Free -> tar.xz Package.

What I have tried:

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: If you download the file, note it's actually bz2 file. A little crazy, I know :-)


To download that file, you need a cookie named PHPSESSID.

First, save the cookie:

curl \
  -c cookie.txt \
  -o /dev/null \

Then, use that cookie and download the file:

curl \
  -b cookie.txt \
  -o zoiper5_5.2.6_x86_64.tar.xz \

You can also do it with process substitution to avoid writing a cookie file:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.