Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2020 16:59:49 -0800
From:      "Jin Guojun[VFF]" <jguojun@gmail.com>
To:        questions@freebsd.org
Subject:   http user/password option in fetch command
Message-ID:  <c516ac43-0276-1619-8008-b197ccd638c6@gmail.com>

next in thread | raw e-mail | index | archive | help
Some HTTP server (not using standard port 80), seems not taking the 
standard user:password format.

fetch http://$USER:$PW@server:1234/locations (FreeBSD) and

wget --user=$USER --password=$PW http://server:1234/locations (Linux) and

wget http://$USER:$PW@server:1234/locations    all get 403 Forbidden Error.

The wget has an option  --auth-no-challenge that solves the problem.

I wonder if the "fetch" command has a similar option. If not, does 
anyone know a way to work around this problem?

-Jin




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c516ac43-0276-1619-8008-b197ccd638c6>