Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support IPv4/IPv6 address in proxy Options #1756

Closed
jcamiel opened this issue Jul 11, 2023 · 0 comments · Fixed by #1842
Closed

Support IPv4/IPv6 address in proxy Options #1756

jcamiel opened this issue Jul 11, 2023 · 0 comments · Fixed by #1842
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented Jul 11, 2023

What is the current bug behavior?

IPv4/IPv6 are not supported in [Options] section for, at least, --proxy. Need to check also --resolve and --connect-to:

HEAD https://hurl.dev
[Options]
proxy: 127.0.0.1:8080
error: Parsing literal
  --> -:3:11
   |
 3 | proxy: 127.0.0.1:8080
   |           ^ expecting 'line_terminator'
   |

And IPv6 (with and without bracket notation):

HEAD https://hurl.dev
[Options]
proxy: [dead:beef:1234:5678:8765:4321:feed:daed]:8080
error: Parsing literal
  --> -:3:8
   |
 3 | proxy: [dead:beef:1234:5678:8765:4321:feed:daed]:8080
   |        ^ expecting 'proxy name'
   |
HEAD https://hurl.dev
[Options]
proxy: dead:beef:1234:5678:8765:4321:feed:daed:8080
error: Parsing literal
  --> -:3:11
   |
 3 | proxy: 127.0.0.1:8080
   |           ^ expecting 'line_terminator'
   |

Execution context

  • Hurl Version (hurl --version):
hurl 4.0.0 libcurl/7.87.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.45.1
Features (libcurl):  alt-svc AsynchDNS HSTS HTTP2 IPv6 Largefile libz NTLM NTLM_WB SPNEGO SSL UnixSockets
Features (built-in): brotli
  • Operating system and version: macOS
@jcamiel jcamiel added the bug Something isn't working label Jul 11, 2023
@jcamiel jcamiel added this to the 4.1.0 milestone Jul 13, 2023
@fabricereix fabricereix self-assigned this Aug 12, 2023
@fabricereix fabricereix linked a pull request Aug 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants