mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-09-08 21:12:53 +02:00
Merge pull request #1452 from drwetter/add_1451
Last fine tuning for http basic auth
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user