Netscape like hostname shortcut patch

From: John Taylor <john@dont-contact.us>
Date: Thu, 20 Nov 1997 13:32:38 -0500 (EST)

Hi, I have patched squid 1.1.18 to allow browers to use only the company
name for the url, similar to the way netscape navigatior does. For example,
if I type in "cnn" (from navigator), it will get converted to www.cnn.com.
If I type "javasoft/beans", it will get converted to www.javasoft.com/beans.

This patch is not perfect either. Ideally, if you had a machine called
sun.yourdomain.com, and you typed in "sun", you would like for squid to
connect to the host in your domain, instead of www.sun.com. "www" is
another example of this problem. I was too lazy to properly fix this.

The code itself looks for a dot ".", and if it does not find one, it
prepends a www. and appends a .com to the url.

Comments, suggestions?

John Taylor Institute of Government
Computer and Network University of Georgia
Operations Manager
john@www.cviog.uga.edu http://www.cviog.uga.edu/

begin 664 squid-1.1.18_netscape_hack.patch.gz
M'XL("$H^<#0"`W-Q=6ED+3$N,2XQ.%]N971S8V%P95]H86-K+G!A=&-H`*56
M77/:1A1]]Z^X9<9&LH1`Q%@!BH>TH7$Z#IU)TO:A]F@6:06JQ4J15L:.Q_^]
M=[5"7PZ$N/(#UMZOL^>>O:M.IP.^$QD.X/-;[,,?#H=7)IB]T9DY,L_`'`ZM
M(TW3A)>](LZM=/T0,IB'=V!:T+-&9\-1?RA=IU/HF(/7/?T<M.RW?P[3Z9&(
M`9]QB.D7>^7&=O)U7"ZF<2`7CC2QU#V5O_C,*4\<$E'X]"7U73`-_'L-`D?A
M\GNX8O"9/`1A#,J_^#+=;#:&<^>'2R-=$H.ZJ2K\3+-C6AVQFR+T31"$FZ0L
M$OBW%+R4.=P/&0E\_F!4O&?W9!T%-!D5*PYC`)T+6'$>C;K=K"YCAA.NNU6?
M[M^S-Y\O9Q]WN.;6[K;4:1Z\)0/^(K&_P,+@X18+L(*$AJ_@,@C#"";0&Y=+
M;LB3QE(2D&05A$YEV5F1&$XY74>K,.%HF/]Y=56W$3\HUV7[$-X'@JPE:4R!
M`.X'*>*"2B8@)K"@E&'7'>K?45?@E5WW0$EX[*QB!87UB1-..Q<^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