-1

Yo

I'm trying to download a file from DigitalBlasphemy.com using lftp and pget on cygwin on windows.

Now, the usual route involves logging in to the website via web browser (It asks for username and password).

When I try to use lftp's pget command to download the file, lftp just farts out with "401 Unauthorized". How can I provide the relevant credentials to my command?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
TheIronKnuckle
  • 7,224
  • 4
  • 33
  • 56

1 Answers1

0

You have to edit the url of the file you are downloading. For example instead of

pget https://example.com/directory-structure/filename.ext

you have to do

pget https://username:password@example.com/directory-structure/filename.ext
TheIronKnuckle
  • 7,224
  • 4
  • 33
  • 56