The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Squid is Clever, so Squid Sucks

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brad Wilson

Posts: 462
Nickname: dotnetguy
Registered: Jul, 2003

Brad Wilson is CTO of OneVoyce, Inc.
Squid is Clever, so Squid Sucks Posted: Nov 25, 2003 5:42 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Brad Wilson.
Original Post: Squid is Clever, so Squid Sucks
Feed Title: The .NET Guy
Feed URL: /error.aspx?aspxerrorpath=/dotnetguy/Rss.aspx
Feed Description: A personal blog about technology in general, .NET in specific, and when all else fails, the real world.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Brad Wilson
Latest Posts From The .NET Guy

Advertisement

At perhaps a rate of a dozen a week or so, we get errors from our web site about invalid URLs. They always look like this:

http://www.madeupdomain.com/foo/bar/

Alright, so here's the funny part. That's not a page on our site, and there's no link anywhere on our site to that URL. There's no referer header, so I have to guess that Squid is scraping it out, but it doesn't really matter. See, here is the link we have:

http://www.madeupdomain.com/foo/bar

See the difference? That's right, no trailing slash. Apparently, the Squid authors were so smart that they unilaterally decided that any URL that doesn't have an extension on the end of it obviously must mean it's a directory. Obviously. As if / even necessarily means that there's a directory on a file system involved somewhere (in our case, there isn't, as all pages are generated without regard to any files in the filesystem, as is perfectly legal).

Nicely done. This is the kind of stuff that drives me nutty... people who have a much higher opinion of their intellect than they clearly deserve to have, making "clever" leaps of "logic" and destroying what should be a relatively simple thing: URLS ARE OPAQUE. STOP MESSING WITH THEM.

Read: Squid is Clever, so Squid Sucks

Topic: Introducing: Extensibility Application Block Previous Topic   Next Topic Topic: I'm going on a two month gig to Norway

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use