Re: # in URL as password symbol

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 18 Sep 2000 20:02:06 +0200

The URL SHOULD read
ftp://cust-read:Rcus-01%23@update.symantec.com/opt/content/onramp/livetri.zip

# is a reserved character in URLs and must be escaped. It is used to
denote anchors in references.

It can however be argued wether Squid is doing the correct thing here or
not. A quick bandage fix is to change Squid to allow it by removing
these two lines from client_side.c:

    if ((t = strchr(url, '#'))) /* remove HTML anchors */
        *t = '\0';

--
Henrik Nordstrom
Squid hacker
Pavel Alexey wrote:
> 
> Hi!
> Norton Antivirus have an "live update" mechanism for autoupdating. It connect to
> Symantec ftp site and download some files. Connection can be done over proxy
> server. Norton Antivirus download files using next URL:
> ftp://cust-read:Rcus-01#@update.symantec.com/opt/content/onramp/livetri.zip
> where "cust-read" is user name and "Rcus-01#" - password
> Squid truncate this URL at "#". In access.log squid log request as
> ftp://cust-read:Rcus-01
> and reply:
> 
> ERROR
> The requested URL could not be retrieved
> While trying to retrieve the URL: ftp://cust-read:Rcus-01
> The following error was encountered:
> š š šInvalid URL
> Some aspect of the requested URL is incorrect. Possible problems:
--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Mon Sep 18 2000 - 12:42:49 MDT

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