Skip to content

:BASIC-AUTHORIZATION has no encoding options #152

@phoe

Description

@phoe
CL-USER> (drakma:http-request "http://127.0.0.1:8080/"
                              :basic-authorization '("a" "££££££££££"))
GET / HTTP/1.1
Host: 127.0.0.1:8080
User-Agent: Drakma/2.0.10 (SBCL 2.6.1.roswell; Linux; 6.1.0-40-amd64; http://weitz.de/drakma/)
Authorization: Basic YTqjo6Ojo6Ojo6Oj
Accept: */*
Connection: close
;; ...

YTqjo6Ojo6Ojo6Oj in base64 is not valid UTF-8 (it's Latin-1). https://en.wikipedia.org/wiki/Basic_access_authentication#Client_side remarks that UTF-8 is allowed to be requested by the server when encoding the authentication header. I see no such option in Drakma though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions