3 Nov
2017
3 Nov
'17
10:03 p.m.
On 11/3/2017 1:19 PM, Max Xu wrote:
I am have something like httpstatus;https://admin_name:passwdXY#Z at abc.com/abc;200 in hosts.cfg.
It would not surprise me that the # character breaks the parser. The syntax of this line has evolved over the decades, while remaining backwardly compatible. It is a truly spectacular mashup of semicolons, spaces, quotes, and equal signs.
Have you tried wrapping the whole httpstatus portion in double-quotes? "httpsstatus;http://foo:b#r at baz.com;200"
Have you tried replacing the # with %23 ? I don't really expect it to work, but it's worth a try.
-- Do things because you should, not just because you can.
John Thurston 907-465-8591 John.Thurston at alaska.gov Department of Administration State of Alaska