So I tried something like ./check_curl '-I' '::1' (or ./check_curl '-H' '::1' and it breaks before even connecting due to the invalid URL format RFC3986. This is saved in the url variable and generated from server_address ( link ).
If given an IPv6 address, this address must be surround by square brackets ([]).