Skip to content

SocketsHttpHandler: Proxied IPv6 requests have incorrectly formatted host/port in request line #25677

@caesar-chen

Description

@caesar-chen

On WinHttpHandler, we will append [] around the IPv6 address.
"GET http://[::1234]/ HTTP/1.1", "Proxy-Connection: Keep-Alive", "Host: [::1234]"

On SocketsHttpHandler, currently we don't:
"GET http://::1234/ HTTP/1.1", "Host: [::1234]"

Also, if we specify a port number, SocketsHttpHandler will strip that in the uri send to the proxy as well.

WinHttpHandler:
In value: List ["GET http://[::1234]:8080/ HTTP/1.1", "Proxy-Connection: Keep-Alive", "Host: [::1234]:8080"]

SocketsHttpHandler:
In value: List ["GET http://::1234/ HTTP/1.1", "Host: [::1234]:8080"]

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions