Re: [squid-users] Problem with Backslash

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 17 Jun 2010 19:50:46 +1200

Dave Forster wrote:
> Hi Guys,
>
> We have an application that updates and grabs a manifest xml file from a
> web server. When it makes the request, it has been hard coded to use
> \MANIFEST.XML at the end of the address.
>
> The application that calls this URL does not run through Internet
> Explorer so it won't correct the backslash. When this URL is passed to

IE is not required for proper URL encoding.

> Squid it comes back with a 404 error. This is because the URL should
> actually reference /MANIFEST.XML. The application is a government
> application and "can't be changed"!
>
> Is there a way to make Squid parse all backslashes in URLs as
> forwardslashes???

No. Forward slashes are invalid URL symbols. They are not permitted to
be sent on the 'wire' protocol.

Does that URL show up in the logs as
   /path/to%5CMANIFEST.XML
or
   /path/toMANIFEST.XML
?

If the former, then Squid should be passing that encoded form along to
the origin web server, the 404 coming back from there.

If the latter, then Squid is likely not even getting the \ character.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.4
Received on Thu Jun 17 2010 - 07:50:54 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 17 2010 - 12:00:03 MDT