Re: URL syntax checking in Squid

From: Duane Wessels <wessels@dont-contact.us>
Date: Wed, 06 May 1998 10:51:00 -0600

Maciej Kozinski writes:

>Hi Duane,
>
>we've got following problem with Squid here:
>
>>ERROR
>>
>>The requested URL could not be retrieved
>>
>>While trying to retrieve the URL: http://tucows_os2.icm.edu.pl/
>>
>>The following error was encountered:
>>
>> Invalid URL syntax
>>
>> This means that:
>>
>>Please double check it, or ask for assistance.
>
>I suppose that this error was caused by presence of underscore in URL. Am I
>right or wrong?
> The problem is that underscore _is_allowed_ in DNS names as rfc1033 says.
>So shouldn't squid parse such an URL properly and fetch the object?

Hm, RFC's 1101 and 952 do not mention '_' in the allowed characters.

Anyway, you can compile recent versions of squid with
-DALLOW_HOSTNAME_UNDERSCORES=1.

I'll try to find out more about the troublemaking underscore.

Duane W.
Received on Tue Jul 29 2003 - 13:15:49 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:46 MST