Re: Colon's in URL

From: Mark Kellaway (mark.kellaway@vicomsoft.com)
Date: Tue May 30 2000 - 07:09:06 MDT


Initial testing indicated that MS Proxy 2 on the PC and Maxim Webdoubler on
the Mac had this problem. After making the code change and re-running the
tests indicates that the change has in fact made a difference, thank you
very much for the help.

Mark. :-)

Mark Kellaway
Vicomsoft.

At 18:30 26/05/00, you wrote:
>On Thu, 25 May 2000, Mark Kellaway wrote:
>
> > I'm using Polygraph to test our low end cache, running on a PC and Mac,
> > against competitive products. I'm finding the colon's within the URL are
> > causing the competitive caches problems (nothing is being cached!),
>
>How do you know that the column symbol is at fault? What products show
>that behavior?
>
> > is there any way to suppress the colon's?
>
>Yes, you can use other delimiters by modifying the source code. For
>example, below is an untested patch that uses 'z' instead of ':'. The
>patch should be applied in the "polygraph/src" directory.
>
>HTH,
>
>Alex.
>
>Index: UniqId.cc
>===================================================================
>RCS file: /surf1/CVS/polygraph/src/UniqId.cc,v
>retrieving revision 1.4
>diff -u -r1.4 UniqId.cc
>--- UniqId.cc 1999/09/26 23:36:18 1.4
>+++ UniqId.cc 2000/05/26 17:24:14
>@@ -66,7 +71,7 @@
> const char fill = os.fill('0');
> os << setbase(16)
> << setw(8) << theSecs << '.'
>- << setw(8) << theMix << ':'
>+ << setw(8) << theMix << 'z'
> << setw(8) << theCnt;
> os.fill(fill);
> os.flags(flags);
>Index: httpHdrs.cc
>===================================================================
>RCS file: /surf1/CVS/polygraph/src/httpHdrs.cc,v
>retrieving revision 1.10.2.2
>diff -u -r1.10.2.2 httpHdrs.cc
>--- httpHdrs.cc 2000/01/11 23:59:48 1.10.2.2
>+++ httpHdrs.cc 2000/05/26 17:24:14
>@@ -145,7 +145,7 @@
> int a = 0, b = 0, c = 0;
> const char *p = 0;
> if (isInt(buf, a, &p, 16) && *p == '.' &&
>- isInt(p+1, b, &p, 16) && *p == ':' &&
>+ isInt(p+1, b, &p, 16) && *p == 'z' &&
> isInt(p+1, c, 0, 16))
> return id = UniqId(a, b, c);
>



This archive was generated by hypermail 2b29 : Tue Jul 10 2001 - 12:00:12 MDT