Skip to content

How to add resolve option for domains containing dashes #2829

Discussion options

You must be logged in to vote

Hi @jcamiel

$ hurl --verbose example.hurl
error: Parsing literal
  --> example.hurl:3:10
   |
 3 | resolve: foo-bar.com:443:192.168.0.110
   |          ^ expecting 'HOST:PORT:ADDR'
   |
$ hurl --version 
hurl 4.1.0 (unknown) libcurl/8.3.0-DEV OpenSSL/3.0.13 zlib/1.3
Features (libcurl):  alt-svc AsynchDNS HSTS IPv6 libz SSL UnixSockets
Features (built-in): brotli
$ cat example.hurl
GET https://foo-bar.com/
[Options]
resolve: foo-bar.com:443:192.168.0.110
HTTP 200

Displaying the version gave me the idea to look up the most recent version and I was actually behind.
I'm using NixOS and stable (23.11) is on 4.1.0 while unstable already has 4.3.0.
And using 4.3.0 works as expected.

$ hurl --ver…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@michel-zimmer
Comment options

Answer selected by michel-zimmer
@jcamiel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants