curl-users
host name with hyphen or underscore at the beginning
From: Haejoong Lee <haejoong_at_ldc.upenn.edu>
Date: Fri, 15 Jun 2007 05:33:59 -0400
Date: Fri, 15 Jun 2007 05:33:59 -0400
Hello,
I get an error message like the following if the host name begins with a
hyphen or underscore.
curl: (6) Couldn't resolve host ...
I looked at RFC 3936 and it allows such host names.
host = IP-literal / IPv4address / reg-name
reg-name = *( unreserved / pct-encoded / sub-delims )
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
Does anyone know what the problem is?
Thanks in advance!
-Haejoong
Received on 2007-06-15