Last fine tuning for http basic auth

* create roff file and HTML
* add hint to $ENV

Avoid 1x subshell

See #1451.
This commit is contained in:
Dirk Wetter
2020-01-16 14:29:53 +01:00
parent 700a727f3f
commit 4603d924be
4 changed files with 7 additions and 2 deletions

View File

@ -18420,7 +18420,7 @@ determine_service() {
ua="$UA_SNEAKY" || \
ua="$UA_STD"
if [[ ! -z "$BASICAUTH" ]]; then
basicauth_header="Authorization: Basic $(echo $BASICAUTH | openssl base64) \r\n"
basicauth_header="Authorization: Basic $(openssl base64 <<< $BASICAUTH) \r\n"
fi
GET_REQ11="GET $URL_PATH HTTP/1.1\r\nHost: $NODE\r\nUser-Agent: $ua\r\n$basicauth_header Accept-Encoding: identity\r\nAccept: text/*\r\nConnection: Close\r\n\r\n"
# returns always 0: