In order to make fetch (the FreeBSD downloading tool) ask for username/password when it encounter a password-protected web page, you can set the environment variable HTTP_AUTH to 'basic:*'.