Skip to content

net/http: Client and Transport don't support RFC 6874 #9544

Closed
@mikioh

Description

@mikioh

On all released versions, Get with a literal IPv6 address with a zone identifier fails. For example,

u := &url.URL{Scheme: "http", Host: "[::1%lo0]:8080"}
resp, err := http.DefaultClient.Get(u.String())

and

resp, err := http.Get("http://[::1%lo0]:8080")

return parse http://[::1%lo0]:8080: hexadecimal escape in host or parse [::1%lo0]:8080: invalid URL escape "%lo" error. After the fix of #6530, the former works well but the latter still fails.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions