You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gleam/uri package handles parsing URIs with brackets correctly, since it uses the regex from rfc3986. As a consequence, it does not handle URIs that do not have brackets.
(The latter case should probably fail instead of producing an invalid host value, but that's another issue).
However, the httpc package is not currently configured to accept IPv6 addresses with brackets. Passing an IPv6 URI from uri.parse will produce value => {error,invalid_uri}
I'm wondering if the underlying erlang httpc module needs to have "ipv6_host_with_brackets" set to True?
http://[2606:2800:21f:cb07:6820:80da:af6b:8b2c] -> example.net, should give a 404 Not Found
http://[2a00:1450:400a:808::200e] -> google.com, should also give a 404
These should both succeed with httpc, and not error out with "invalid URI".
The text was updated successfully, but these errors were encountered:
The
gleam/uri
package handles parsing URIs with brackets correctly, since it uses the regex from rfc3986. As a consequence, it does not handle URIs that do not have brackets.(The latter case should probably fail instead of producing an invalid host value, but that's another issue).
However, the
httpc
package is not currently configured to accept IPv6 addresses with brackets. Passing an IPv6 URI fromuri.parse
will producevalue => {error,invalid_uri}
I'm wondering if the underlying erlang
httpc
module needs to have "ipv6_host_with_brackets" set to True?https://www.erlang.org/doc/apps/inets/httpc.html#request/4
Here are some public IPv6 URIs to try:
http://[2606:2800:21f:cb07:6820:80da:af6b:8b2c] -> example.net, should give a 404 Not Found
http://[2a00:1450:400a:808::200e] -> google.com, should also give a 404
These should both succeed with
httpc
, and not error out with "invalid URI".The text was updated successfully, but these errors were encountered: