Skip to content

uclient-fetch: basic HTTP authentication is broken #14

@rany2

Description

@rany2

@nbd168, please take a look at this. I have provided instructions to repro:

$ apk info uclient-fetch
uclient-fetch-2026.01.31~931bbfeb-r1 description:
Tiny wget replacement using libuclient

uclient-fetch-2026.01.31~931bbfeb-r1 webpage:


uclient-fetch-2026.01.31~931bbfeb-r1 installed size:
24 KiB
$ uclient-fetch -qO- --user=rany --password=epic https://httpbin.org/get
{
  "args": {},
  "headers": {
    "Host": "httpbin.org",
    "User-Agent": "uclient-fetch",
    "X-Amzn-Trace-Id": "<redacted>"
  },
  "origin": "<redacted>",
  "url": "https://httpbin.org/get"
}
$ curl -o- https://rany:epic@httpbin.org/get
{
  "args": {},
  "headers": {
    "Accept": "*/*",
    "Authorization": "Basic cmFueTplcGlj",
    "Host": "httpbin.org",
    "User-Agent": "curl/8.15.0",
    "X-Amzn-Trace-Id": "<redacted>"
  },
  "origin": "<redacted>",
  "url": "https://httpbin.org/get"
}

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