When using the a Netscape proxy server to fetch (GET) a file, if the file
has been cached, then part of the HTTP headers get stored with the file.
[This causes problems with binary files!]
Using debug shows the following header lines:
[snip]
Warning: 10 host:port "Remote server was not contacted, document may be out
of date"
Last checked: Mon Apr 03 17:49:01 2000
Server: Netscape-Proxy/2.52
Content-Length: nnn
Content-Type: etc
<blank line>
All the lines starting with "Last checked:" are copied to the output file.
Inspection of the LWP code suggests that the problem is the space in the
"Last checked:" header line - presumably this is not a valid HTTP header.
Temporarily changing the regular expression in HTTP.PM to allow a space
fixes the problem, but strikes me as a kludge.
Can anyone advise the best course of action (excluding fixing the proxy
server!) ?
One possibility would be to avoid the problem by telling the proxy to fetch
the file unconditionally - can anyone tell me what the magic request header
might be to effect this?
--
Sebastian Bazley <[EMAIL PROTECTED]>
The opinions expressed herein are my own, and are not necessarily endorsed
by my employer ...
___________________________________________________________________________
This email is confidential and intended solely for the use of the
individual to whom it is addressed. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
Sema Group.
If you are not the intended recipient, be advised that you have received this
email in error and that any use, dissemination, forwarding, printing, or
copying of this email is strictly prohibited.
If you have received this email in error please notify the Sema Group
Helpdesk by telephone on +44 (0) 121 627 5600.
___________________________________________________________________________