Re: [squid-users] Invalid Response/Malformed

2009-05-26 Thread Ricardo Nuno
- "Bruno Guerreiro"  wrote:

| Hi all,
| Ive run into this issue.
| When trying to access this site http://www.acp.pt I get an error
| message:
| 
| Invalid Response error was encountered while trying to process the
| request:
| GET / HTTP/1.1
| Host: www.acp.pt
| User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
| rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8
| Accept:
| text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
| Accept-Language: en-us,en;q=0.5
| Accept-Encoding: gzip,deflate
| Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
| Keep-Alive: 300
| Proxy-Connection: keep-alive
| Cookie: OAID=85d42a4578c83aec5c49fcf529626d18;
| __utma=10858660.1732473768.1237559664.1237559664.1237559664.1;
| __utmz=10858660.1237559664.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)
| Cache-Control: max-age=0
| 
| This has changed from a zero sized reply with 2.6 STABLE22 to the
| error Ive mentioned in 3.0-STABLE13
| 

Hi,

We host this website. Thank you for bring this to my attention.
I just fixed the problem and it has not a Squid issue.

It has a PHP Fatal error on a script that, for some reason, only happen
when a proxy connection has used to access the website.

Please try to access it now and tell me how it goes.

regards,
-- Ricardo Nuno




Re: [squid-users] Invalid Response/Malformed

2009-04-03 Thread Amos Jeffries

Bruno Guerreiro wrote:

Hi Amos,


-Original Message-
From: Amos Jeffries [mailto:squ...@treenet.co.nz]
Sent: quarta-feira, 1 de Abril de 2009 2:38
To: Bruno Guerreiro
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] Invalid Response/Malformed




By all appearances you are getting a unspecified length object back, 

with

probably no data length.
This is an invalid HTTP reply exactly as the error message said.

From this info I have no idea at present why the server would be
generating such replies.

Amos


Hmm, but then how can I Access other sites also send a unspecified 
length back? Or am I missing something?


wget --server-response http://www.google.pt
--2009-04-01 11:11:39--  http://www.google.pt/
Resolving www.google.pt... 74.125.43.99, 74.125.43.103, 74.125.43.104, 
...

Connecting to www.google.pt|74.125.43.99|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.0 200 OK
  Cache-Control: private, max-age=0
  Date: Wed, 01 Apr 2009 10:11:39 GMT
  Expires: -1
  Content-Type: text/html; charset=ISO-8859-1
  Server: HAL 9000
  Set-Cookie: 
PREF=ID=473c55dd32d735e5:TM=1238580699:LM=1238580699:S=YTk2s6Pk1NlyJjv6; 
expires=Fri, 01-Apr-2011 10:11:39 GMT; path=/; domain=.google.pt

Length: unspecified [text/html]
Saving to: `index.html'

TIA,
Bruno Guerreiro



I think they send unspecified length with data >1 bytes.

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
  Current Beta Squid 3.1.0.6


RE: [squid-users] Invalid Response/Malformed

2009-04-02 Thread Bruno Guerreiro
Hi Amos,

> -Original Message-
> From: Amos Jeffries [mailto:squ...@treenet.co.nz]
> Sent: quarta-feira, 1 de Abril de 2009 2:38
> To: Bruno Guerreiro
> Cc: squid-users@squid-cache.org
> Subject: Re: [squid-users] Invalid Response/Malformed



> 
> By all appearances you are getting a unspecified length object back, 
with
> probably no data length.
> This is an invalid HTTP reply exactly as the error message said.
> 
> From this info I have no idea at present why the server would be
> generating such replies.
> 
> Amos

Hmm, but then how can I Access other sites also send a unspecified 
length back? Or am I missing something?

wget --server-response http://www.google.pt
--2009-04-01 11:11:39--  http://www.google.pt/
Resolving www.google.pt... 74.125.43.99, 74.125.43.103, 74.125.43.104, 
...
Connecting to www.google.pt|74.125.43.99|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.0 200 OK
  Cache-Control: private, max-age=0
  Date: Wed, 01 Apr 2009 10:11:39 GMT
  Expires: -1
  Content-Type: text/html; charset=ISO-8859-1
  Server: HAL 9000
  Set-Cookie: 
PREF=ID=473c55dd32d735e5:TM=1238580699:LM=1238580699:S=YTk2s6Pk1NlyJjv6; 
expires=Fri, 01-Apr-2011 10:11:39 GMT; path=/; domain=.google.pt
Length: unspecified [text/html]
Saving to: `index.html'

TIA,
Bruno Guerreiro



Re: [squid-users] Invalid Response/Malformed

2009-03-31 Thread Amos Jeffries
>
>
> Hi all,
> Ive run into this issue.
> When trying to access this site http://www.acp.pt I get an error message:
>
> Invalid Response error was encountered while trying to process the
> request:
> GET / HTTP/1.1
> Host: www.acp.pt
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8)
> Gecko/2009032609 Firefox/3.0.8
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Proxy-Connection: keep-alive
> Cookie: OAID=85d42a4578c83aec5c49fcf529626d18;
> __utma=10858660.1732473768.1237559664.1237559664.1237559664.1;
> __utmz=10858660.1237559664.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)
> Cache-Control: max-age=0
>
> This has changed from a zero sized reply with 2.6 STABLE22 to the error
> Ive mentioned in 3.0-STABLE13
>
> Checking the headers with wget, this is the response:
>
> wget --server-response http://www.acp.pt
> --2009-03-31 18:09:31--  http://www.acp.pt/
> Resolving www.acp.pt... 85.88.134.195
> Connecting to www.acp.pt|85.88.134.195|:80... connected.
> HTTP request sent, awaiting response...
>   HTTP/1.1 200 OK
>   Date: Tue, 31 Mar 2009 17:09:31 GMT
>   Server: Apache
>   X-Powered-By: PHP/5.1.6
>   Set-Cookie: PHPSESSID=vpdj646m74m8l03u8khru64fr1; path=/
>   Expires: Thu, 19 Nov 1981 08:52:00 GMT
>   Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
> pre-check=0
>   Pragma: no-cache
>   Set-Cookie: OAID=b3427be14c171ba4c8a9ef4f6a4a718d; expires=Wed,
> 31-Mar-010 17:09:31 GMT; path=/
>   P3P: CP="CUR ADM OUR NOR STA NID"
>   Connection: close
>   Content-Type: text/html; charset=ISO-8859-1
>   Content-Language: pt
> Length: unspecified [text/html]
>
> This is the capture with wireshark:




>
> Any ideas?
>

By all appearances you are getting a unspecified length object back, with
probably no data length.
This is an invalid HTTP reply exactly as the error message said.

>From this info I have no idea at present why the server would be
generating such replies.

Amos



Re: [squid-users] Invalid response during POST request

2008-12-23 Thread Kinkie
On Tue, Dec 23, 2008 at 4:19 AM, howard chen  wrote:
> I am using Squid as reverse proxy to web server.
>
> Sometimes (not always), when client POST something to my server, error
> will be shown:
>
> =
> ERROR
>
> The requuseted URL could not be retrieved
>
> * Invalid Resposne
> =
>
> Full Screen cap : http://howachen.googlepages.com/squid-error.gif
>
> Any idea for this error?

Hi Howard,
  the screenshot is missing the details about the actual response.
A cursory glance at the request seems fine.
Obtaining the broken response is going to be tricky, and will probably
require extensive logging or network sniffing.
Could you try running at debug_options 11,4 ALL,1 ?
You'll then have to sort through the cache.log and see if any further
details emerge from there.


-- 
/kinkie


Re: [squid-users] Invalid Response

2008-08-28 Thread Amos Jeffries

Roy M. wrote:

Sorry

On Wed, Aug 27, 2008 at 1:49 PM, Amos Jeffries <[EMAIL PROTECTED]> wrote:

Roy M. wrote:



Start with giving us some details to work with.
Are you even using Squid? What details do you already have that makes you
think its a Squid-related problem?



The full error message is:


ERROR
The requested URL could not be retrieved

While trying to process the request:

POST /admin.php HTTP/1.1
...

The following error was encountered:

* Invalid Response

The HTTP Response message received from the contacted server could not
be understood or was otherwise malformed. Please contact the site
operator. Your cache administrator may be able to provide you with
more details about the exact nature of the problem if needed.

Your cache administrator is [EMAIL PROTECTED]
Generated Wed, 13 Aug 2008 13:26:12 GMT by cache.localhost (squid)


Any idea or any information needed?


Version of Squid: 2.6? 2.7? 3.0? other?

Any HTTP/1.1 patches applied? or HTTP/1.1 settings if 2.7?

What does cache.log say at the time of request/reply?

Amos
--
Please use Squid 2.7.STABLE4 or 3.0.STABLE8


Re: [squid-users] Invalid Response

2008-08-27 Thread Roy M.
Sorry

On Wed, Aug 27, 2008 at 1:49 PM, Amos Jeffries <[EMAIL PROTECTED]> wrote:
> Roy M. wrote:

> Start with giving us some details to work with.
> Are you even using Squid? What details do you already have that makes you
> think its a Squid-related problem?
>

The full error message is:


ERROR
The requested URL could not be retrieved

While trying to process the request:

POST /admin.php HTTP/1.1
...

The following error was encountered:

* Invalid Response

The HTTP Response message received from the contacted server could not
be understood or was otherwise malformed. Please contact the site
operator. Your cache administrator may be able to provide you with
more details about the exact nature of the problem if needed.

Your cache administrator is [EMAIL PROTECTED]
Generated Wed, 13 Aug 2008 13:26:12 GMT by cache.localhost (squid)


Any idea or any information needed?

Thanks


Re: [squid-users] Invalid Response

2008-08-26 Thread Amos Jeffries

Roy M. wrote:

Hi,

Some of our users will receive "Invalid Response" when they are
uploading images thru HTTP (POST) using our web program:


You have a problem.

Start with giving us some details to work with.
Are you even using Squid? What details do you already have that makes 
you think its a Squid-related problem?


All you ave mentioned is an un-named web program giving users an error 
page via unspecified methods, for unknown reasons, when given unknown 
information in an HTTP POST. This occurs inconsistently, and for unknown 
reasons. And the error page tells users that some software somewhere of 
unknown location and type can't can't handle the response to their request.


Amos
--
Please use Squid 2.7.STABLE4 or 3.0.STABLE8


Re: [squid-users] Invalid Response

2007-11-27 Thread Henrik Nordstrom
On tis, 2007-11-27 at 15:43 +0100, [EMAIL PROTECTED] wrote:


> Thank you very much Henrik.
> 
> With this valuable information, I will ask for some modifications on the
> website.
> Do you think the patch will be merged back into 2.6 or 3.x ?

The patch is already in 2.6.STABLE17 (pending release today or
tomorrow).

Squid-3 do not yet handle HTTP/1.1 chunked encoding at all, and will be
somewhat confused if seen (garbage result to the client).. Adding
support for chunked encoding is scheduled for 3.1.

Regards
Henrik


signature.asc
Description: This is a digitally signed message part


Re: [squid-users] Invalid Response

2007-11-27 Thread apmailist
Quoting Henrik Nordstrom <[EMAIL PROTECTED]>:

> On fre, 2007-11-23 at 15:49 +0100, [EMAIL PROTECTED] wrote:
>
> > Taken from "Wireshark> Follow TCP Stream" . Tcpdump was done on the squid
> > server.
> >
> > HTTP/1.1 200 OK
> > Date: Mon, 05 Nov 2007 14:22:52 GMT
> > Server: Apache/2.0.52 (Red Hat)
> > Transfer-Encoding: chunked
> > Content-Length: 1532
> > Connection: close
> > Content-Type:  text/html; charset=utf-8
> >
> > 5ea
> > 
> > 
> >
> > (3 lines more than what you aked for)
>
>
> It's a broken message. It's not allowed to have both Content-Length and
> Transfer-Encoding: chunked. This violates a MUST NOT requirement in the
> HTTP specifications.
>
> Additionally there is another MUST NOT requirement which forbids chunked
> encoding to at all be used in responses to HTTP/1.0 requests (Squid is
> still 1.0). But Squid do handle this if seen.. (too many servers getting
> this wrong, and Squid is progressing towards HTTP/1.1 support)
>
> So two major errors in that HTTP response.
>
> But yes, Squid should not barf this loudly on this, and is infact
> already fixed but forgot to merge that to 2.6.. not sure why..
>
> You can find the patch at
> http://www.squid-cache.org/Versions/v2/HEAD/changesets/11708.patch
>
> Regards
> Henrik
>


Thank you very much Henrik.

With this valuable information, I will ask for some modifications on the
website.
Do you think the patch will be merged back into 2.6 or 3.x ?

Thanks again.

Cheers,

Andrew


Re: [squid-users] Invalid Response

2007-11-23 Thread Henrik Nordstrom
On fre, 2007-11-23 at 15:49 +0100, [EMAIL PROTECTED] wrote:

> Taken from "Wireshark> Follow TCP Stream" . Tcpdump was done on the squid
> server.
> 
> HTTP/1.1 200 OK
> Date: Mon, 05 Nov 2007 14:22:52 GMT
> Server: Apache/2.0.52 (Red Hat)
> Transfer-Encoding: chunked
> Content-Length: 1532
> Connection: close
> Content-Type:  text/html; charset=utf-8
> 
> 5ea
> 
> 
> 
> (3 lines more than what you aked for)


It's a broken message. It's not allowed to have both Content-Length and
Transfer-Encoding: chunked. This violates a MUST NOT requirement in the
HTTP specifications.

Additionally there is another MUST NOT requirement which forbids chunked
encoding to at all be used in responses to HTTP/1.0 requests (Squid is
still 1.0). But Squid do handle this if seen.. (too many servers getting
this wrong, and Squid is progressing towards HTTP/1.1 support)

So two major errors in that HTTP response.

But yes, Squid should not barf this loudly on this, and is infact
already fixed but forgot to merge that to 2.6.. not sure why..

You can find the patch at
http://www.squid-cache.org/Versions/v2/HEAD/changesets/11708.patch

Regards
Henrik


signature.asc
Description: This is a digitally signed message part


Re: [squid-users] Invalid Response

2007-11-23 Thread apmailist
Quoting Henrik Nordstrom <[EMAIL PROTECTED]>:

> On tor, 2007-11-22 at 10:45 +0100, [EMAIL PROTECTED] wrote:
>
> > I looked to the HTTP headers and found nothing strange (But I'm no expert
> on
> > this) :
> > - I checked the spaces before and after the ":"
> > - I also checked the blank lines between the header's section and the html
> body
> > section.
>
> Can you attach the complete headers so we can take a look? (status line
> down to the blank line after the headers)
>

Taken from "Wireshark> Follow TCP Stream" . Tcpdump was done on the squid
server.

HTTP/1.1 200 OK
Date: Mon, 05 Nov 2007 14:22:52 GMT
Server: Apache/2.0.52 (Red Hat)
Transfer-Encoding: chunked
Content-Length: 1532
Connection: close
Content-Type:  text/html; charset=utf-8

5ea



(3 lines more than what you aked for)


Regards,

Andrew


Re: [squid-users] Invalid Response

2007-11-23 Thread Henrik Nordstrom
On tor, 2007-11-22 at 10:45 +0100, [EMAIL PROTECTED] wrote:

> I looked to the HTTP headers and found nothing strange (But I'm no expert on
> this) :
> - I checked the spaces before and after the ":"
> - I also checked the blank lines between the header's section and the html 
> body
> section.

Can you attach the complete headers so we can take a look? (status line
down to the blank line after the headers)

Regards
Henrik


signature.asc
Description: This is a digitally signed message part


Re: [squid-users] Invalid Response

2007-11-22 Thread apmailist
Quoting Henrik Nordstrom <[EMAIL PROTECTED]>:

> On tis, 2007-11-20 at 15:26 +0100, [EMAIL PROTECTED] wrote:
> > Quoting Henrik Nordstrom <[EMAIL PROTECTED]>:
> >
> > > On fre, 2007-11-09 at 16:25 +0100, [EMAIL PROTECTED] wrote:
> > >
> > > > I encounter An "invalid Response" on a particular site.
> > >
> > > What is said in cache.log?
> >
> > Cache.log doesn't say much on normal debug settings.
>
> Odd, it should.
>
> Squid version?
>

Squid version is 2.6 ST 16, on AIX.
I was able to reproduce the problem on another OS : Windows (with Squid 2.6ST13)
( same ISP and network facilities : FW, etc... )

Which debug setting should I use so that Squid tells me why it's not happy with
the response ?
I tried :
debug_options ALL,1 23,3  # Url Parsing
debug_options ALL,1 33,3  # Client-side Routines

I looked to the HTTP headers and found nothing strange (But I'm no expert on
this) :
- I checked the spaces before and after the ":"
- I also checked the blank lines between the header's section and the html body
section.

Thanks,

Andrew


Re: [squid-users] Invalid Response

2007-11-21 Thread Henrik Nordstrom
On tis, 2007-11-20 at 15:26 +0100, [EMAIL PROTECTED] wrote:
> Quoting Henrik Nordstrom <[EMAIL PROTECTED]>:
> 
> > On fre, 2007-11-09 at 16:25 +0100, [EMAIL PROTECTED] wrote:
> >
> > > I encounter An "invalid Response" on a particular site.
> >
> > What is said in cache.log?
> 
> Cache.log doesn't say much on normal debug settings.

Odd, it should.

Squid version?

Regards
Henrik


signature.asc
Description: This is a digitally signed message part


Re: [squid-users] Invalid Response

2007-11-20 Thread apmailist
Quoting Henrik Nordstrom <[EMAIL PROTECTED]>:

> On fre, 2007-11-09 at 16:25 +0100, [EMAIL PROTECTED] wrote:
>
> > I encounter An "invalid Response" on a particular site.
>
> What is said in cache.log?

Cache.log doesn't say much on normal debug settings.
With debug on , it says
2007/11/05 15:02:53| parseHttpRequest: end = {}
2007/11/05 15:02:53| parseHttpRequest: prefix_sz = 585, req_line_sz = 121
2007/11/05 15:02:53| clientSetKeepaliveFlag: http_ver = 1.1
2007/11/05 15:02:53| clientSetKeepaliveFlag: method = GET
2007/11/05 15:02:53| The request GET
http://somesite.com/nms/jsp/webForm.jsp?fo=bl&id=S7Nn6isL2ABgb1B35boKb4Z2SiMGMFGb/VEkJUIAIA
is ALLOWED, because it matched 'group_internet'
2007/11/05 15:02:53| clientProcessRequest2: storeGet() MISS
2007/11/05 15:02:53| httpStart: "GET
http://somesite.com/nms/jsp/webForm.jsp?fo=bl&id=S7Nn6isL2ABgb1B35boKb4Z2SiMGMFGb/VEkJUIAIA";
2007/11/05 15:02:53| ctx: enter level 16:
'http://somesite.com/nms/jsp/webForm.jsp?fo=bl&id=S7Nn6isL2ABgb1B35boKb4Z2SiMGMFGb/VEkJUIAIA'
2007/11/05 15:02:53| httpProcessReplyHeader: key
'5C5369ABE7B82C5EC7956CD08C4AFCFC'
2007/11/05 15:02:53| httpProcessReplyHeader: HTTP CODE: 200
2007/11/05 15:02:53| clientBuildReplyHeader: Error, don't keep-alive
2007/11/05 15:02:53| clientSendMoreHeaderData: Appending 1697 bytes after 202
bytes of headers
2007/11/05 15:02:53| The reply for GET
http://somesite.com/nms/jsp/webForm.jsp?fo=bl&id=S7Nn6isL2GABgb1B35boKb4Z2SiMGMFGb/VEkJUIAIA
is ALLOWED, because it matched 'all'
2007/11/05 15:02:53| connStateFree: FD 31
2007/11/05 15:02:53| httpRequestFree:
http://somesite.com/nms/jsp/webForm.jsp?fo=bl&id=S7Nn6isL2ABgb1B35boKb4Z2SiMGMFGb/VEkJUIAIA
2007/11/05 15:02:53| parseHttpRequest: req_hdr = {Host: somesite.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9)
Gecko/20071025 Firefox/2.0.0.9
Accept: image/png,*/*;q=0.5
Accept-Language: en,en-us;q=0.7,fr-fr;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Proxy-Authorization: Basic x




Access.log with log_mime_headers on says :
[HTTP/1.0 502 Bad Gateway\r\nServer: squid\r\nDate: Mon, 05 Nov 2007 15:54:00
GMT\r\nContent-Type: text/html\r\nContent-Length: 1740\r\nExpires: Mon, 05 Nov
2007 15:54:00 GMT\r\nX-Squid-Error: ERR_INVALID_RESP 0\r\n\r]

>
> > Two tcpdumps, one from the squid server, another one from another internet
> > access point, show strange characters just between the headers and the html
> > stanza. See the "5ea" , then the "1" , and the "0".
>
> The interesting dump is the one between Squid and the requested server.
> Not interesting in seeing a dump of a direct request not using Squid.
>
> As already said those numbers is chunked encoding. Nothing to worry
> about, only seen because you bypassed Squid in this request.
>
> Any yes, Squid-2.6 do handle being thrown chunked encoding even if specs
> do not allow servers to respond with chunked encoding. But some release
> was a little buggy and still barfed.. don't remember exact but it was
> quite a while ago (a year or so..).

We're using 2.6ST 16. Could the workaround be buggy in this version ?

>
> And yes, Squid do downgrade HTTP/1.1 requests to HTTP/1.0 as it's not
> yet HTTP/1.1 compliant.
>



> Regards
> Henrik
>


Thanks,

Andrew


Re: [squid-users] Invalid Response

2007-11-12 Thread Henrik Nordstrom
On fre, 2007-11-09 at 16:25 +0100, [EMAIL PROTECTED] wrote:

> I encounter An "invalid Response" on a particular site.

What is said in cache.log?

> Two tcpdumps, one from the squid server, another one from another internet
> access point, show strange characters just between the headers and the html
> stanza. See the "5ea" , then the "1" , and the "0".

The interesting dump is the one between Squid and the requested server.
Not interesting in seeing a dump of a direct request not using Squid.

As already said those numbers is chunked encoding. Nothing to worry
about, only seen because you bypassed Squid in this request.

Any yes, Squid-2.6 do handle being thrown chunked encoding even if specs
do not allow servers to respond with chunked encoding. But some release
was a little buggy and still barfed.. don't remember exact but it was
quite a while ago (a year or so..).

And yes, Squid do downgrade HTTP/1.1 requests to HTTP/1.0 as it's not
yet HTTP/1.1 compliant.

Regards
Henrik


signature.asc
Description: This is a digitally signed message part


Re: [squid-users] Invalid Response

2007-11-12 Thread Amos Jeffries
> Quoting Amos Jeffries :
>
>> [EMAIL PROTECTED] wrote:
>> > Hi,
>> >
>> >
>> >
>> > I encounter An "invalid Response" on a particular site.
>> > This is what I get from squid :
>> > --
>> > The requested URL could not be retrieved
>> >
>> > While trying to process the request:
>> >
>> > GET
>> >
>> /nms/jsp/webForm.jsp?fo=bl&id=S7Nn7isL2GdroOkABgb1B35boKb4Z2SiMGMFGb/VEkJUIAIA
>> > HTTP/1.1
>> > Host: somesite.com
>> > User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
>> rv:1.8.1.9)
>> > Gecko/20071025 Firefox/2.0.0.9
>> > Accept:
>> >
>>
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
>> > Accept-Language: en,en-us;q=0.7,fr-fr;q=0.3
>> > Accept-Encoding: gzip,deflate
>> > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> > Keep-Alive: 300
>> > Proxy-Connection: keep-alive
>> > Proxy-Authorization: Basic Y8=
>> > --
>> >
>> > relaxed_header_parser value is at "warning".
>> >
>> > I had a look at the headers, but couldn't find anything peculiar. But
>> I'm
>> not an
>> > expert in this field.
>> > Cache.log has said (I'm not 200% sure if it is related or not :
>> > 2007/11/05 16:11:53| ctx: enter level 30: '!ê«@'
>> > 2007/11/05 16:11:53| ctx: enter level 31:
>> 'http://somesite.com/favicon.ico'
>> > 2007/11/05 16:11:53| ctx: enter level 32:
>> 'http://somesite.com/favicon.ico'
>> > 2007/11/05 16:11:53| # ctx: suspiciously deep (32) nesting:
>> >
>> > With Log_mime_headers on , I have
>> > 1194278039.445135 10.7.85.46 TCP_MISS/502 1996 GET
>> > http://somesite.com/nms/jsp/webForm.jsp? user-andrew
>> DIRECT/213.139.xxx.xxx
>> > text/html  [Host: somesite.com\r\nUser-Agent: Mozilla/5.0 (Windows;
>> U;
>> Windows
>> > NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9\r\nAccept:
>> >
>>
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\nAccept-Language:
>> > en,en-us;q=0.7,fr-fr;q=0.3\r\nAccept-Encoding:
>> gzip,deflate\r\nAccept-Charset:
>> > ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nProxy-Connection:
>> > keep-alive\r\nProxy-Authorization: Basic YXsnipcm8=\r\nPragma:
>> > no-cache\r\nCache-Control: no-cache\r\n]   [HTTP/1.0 502 Bad
>> Gateway\r\nServer:
>> > squid\r\nDate: Mon, 05 Nov 2007 15:53:59 GMT\r\nContent-Type:
>> > text/html\r\nContent-Length: 1740\r\nExpires: Mon, 05 Nov 2007
>> 15:53:59
>> > GMT\r\nX-Squid-Error: ERR_INVALID_RESP 0\r\n\r]
>> >
>> > Two tcpdumps, one from the squid server, another one from another
>> internet
>> > access point, show strange characters just between the headers and the
>> html
>> > stanza. See the "5ea" , then the "1" , and the "0".
>> > But this is through Wireshark and I'm not sure about the exactness.
>>
>> Wireshark is exact to the bit.
>
> So the strange characters "5ea","1","0" *were* actually on the wire ?

Apparently. I've never seen a chunked response in wireshark. But the HTTP
headers say chnked, and deflate. So I assume its a binary coding meta-data
for the chunk. In this case it looks like a non-encoded chunk anyway.

> --
> 5ea
> 
> 
> 
> snip
> 
> 
>
> 1
>
>
> 0
>
> --
>
>
>>
>> >
>> > --
>> > GET
>> /nms/jsp/webForm.jsp?fo=bl&id=S7Nn9L2GdroOkABgb1B35boKb4Z2SiMGMFGb/VEkJUIAIA
>> > HTTP/1.1
>> > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
>> > application/x-shockwave-flash, application/vnd.ms-excel,
>> > application/vnd.ms-powerpoint, application/msword, */*
>> > Accept-Language: fr
>> > UA-CPU: x86
>> > Accept-Encoding: gzip, deflate
>> > User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET
>> CLR
>> > 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)
>> > Host: somesite.com
>> > Connection: Keep-Alive
>> >
>> > HTTP/1.1 200 OK
>> > Date: Tue, 06 Nov 2007 04:42:03 GMT
>> > Server: Apache/2.0.52 (Red Hat)
>> > Transfer-Encoding: chunked
>>
>> For starters the server is broken and throwing object that squid can't
>> handle back at squid. Chunked encoding must not be sent to a HTTP/1.0
>> client.
>
> I'm confused : Which HTTP/1.0 client ? I see GET HTTP/1.1

Yes. _Squid_ is the HTTP/1.0 client. Apache server is throwing the
HTTP/1.1 data at it.

aaahh, Fooo!
Maybe a bug then, If squid is in the middle (I assume its
transparent/intercepting?) it should at least be translating that 1.1
received (from real client) to a 1.0 that it can handle, and request 1.0
from Apache.

Will definitely have to hand this to Henrik when he gets well again.

>
>> IIRC there was one aborted 2.6 release of squid that tried to cope, but
>> that was reverted out from main due to problems. Henrik would know more
>> on that.
>> Check you are running a recent 2.6 stable.
>>
>>
>> Amos
>>
>
> I forgot to mention the version we're using : 2.6 Stable16.
> Also, the directive "via" is set to "off".


Amos




Re: [squid-users] Invalid Response

2007-11-12 Thread apmailist
Quoting Amos Jeffries :

> [EMAIL PROTECTED] wrote:
> > Hi,
> >
> >
> >
> > I encounter An "invalid Response" on a particular site.
> > This is what I get from squid :
> > --
> > The requested URL could not be retrieved
> >
> > While trying to process the request:
> >
> > GET
> >
> /nms/jsp/webForm.jsp?fo=bl&id=S7Nn7isL2GdroOkABgb1B35boKb4Z2SiMGMFGb/VEkJUIAIA
> > HTTP/1.1
> > Host: somesite.com
> > User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9)
> > Gecko/20071025 Firefox/2.0.0.9
> > Accept:
> >
>
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> > Accept-Language: en,en-us;q=0.7,fr-fr;q=0.3
> > Accept-Encoding: gzip,deflate
> > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> > Keep-Alive: 300
> > Proxy-Connection: keep-alive
> > Proxy-Authorization: Basic Y8=
> > --
> >
> > relaxed_header_parser value is at "warning".
> >
> > I had a look at the headers, but couldn't find anything peculiar. But I'm
> not an
> > expert in this field.
> > Cache.log has said (I'm not 200% sure if it is related or not :
> > 2007/11/05 16:11:53| ctx: enter level 30: '!ê«@'
> > 2007/11/05 16:11:53| ctx: enter level 31: 'http://somesite.com/favicon.ico'
> > 2007/11/05 16:11:53| ctx: enter level 32: 'http://somesite.com/favicon.ico'
> > 2007/11/05 16:11:53| # ctx: suspiciously deep (32) nesting:
> >
> > With Log_mime_headers on , I have
> > 1194278039.445135 10.7.85.46 TCP_MISS/502 1996 GET
> > http://somesite.com/nms/jsp/webForm.jsp? user-andrew DIRECT/213.139.xxx.xxx
> > text/html   [Host: somesite.com\r\nUser-Agent: Mozilla/5.0 
> > (Windows; U;
> Windows
> > NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9\r\nAccept:
> >
>
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\nAccept-Language:
> > en,en-us;q=0.7,fr-fr;q=0.3\r\nAccept-Encoding:
> gzip,deflate\r\nAccept-Charset:
> > ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nProxy-Connection:
> > keep-alive\r\nProxy-Authorization: Basic YXsnipcm8=\r\nPragma:
> > no-cache\r\nCache-Control: no-cache\r\n][HTTP/1.0 502 Bad
> Gateway\r\nServer:
> > squid\r\nDate: Mon, 05 Nov 2007 15:53:59 GMT\r\nContent-Type:
> > text/html\r\nContent-Length: 1740\r\nExpires: Mon, 05 Nov 2007 15:53:59
> > GMT\r\nX-Squid-Error: ERR_INVALID_RESP 0\r\n\r]
> >
> > Two tcpdumps, one from the squid server, another one from another internet
> > access point, show strange characters just between the headers and the html
> > stanza. See the "5ea" , then the "1" , and the "0".
> > But this is through Wireshark and I'm not sure about the exactness.
>
> Wireshark is exact to the bit.

So the strange characters "5ea","1","0" *were* actually on the wire ?
--
5ea



snip



1


0

--


>
> >
> > --
> > GET
> /nms/jsp/webForm.jsp?fo=bl&id=S7Nn9L2GdroOkABgb1B35boKb4Z2SiMGMFGb/VEkJUIAIA
> > HTTP/1.1
> > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> > application/x-shockwave-flash, application/vnd.ms-excel,
> > application/vnd.ms-powerpoint, application/msword, */*
> > Accept-Language: fr
> > UA-CPU: x86
> > Accept-Encoding: gzip, deflate
> > User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
> > 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)
> > Host: somesite.com
> > Connection: Keep-Alive
> >
> > HTTP/1.1 200 OK
> > Date: Tue, 06 Nov 2007 04:42:03 GMT
> > Server: Apache/2.0.52 (Red Hat)
> > Transfer-Encoding: chunked
>
> For starters the server is broken and throwing object that squid can't
> handle back at squid. Chunked encoding must not be sent to a HTTP/1.0
> client.

I'm confused : Which HTTP/1.0 client ? I see GET HTTP/1.1

> IIRC there was one aborted 2.6 release of squid that tried to cope, but
> that was reverted out from main due to problems. Henrik would know more
> on that.
> Check you are running a recent 2.6 stable.
>
>
> Amos
>

I forgot to mention the version we're using : 2.6 Stable16.
Also, the directive "via" is set to "off".

Andrew



Re: [squid-users] Invalid Response

2007-11-09 Thread Amos Jeffries

[EMAIL PROTECTED] wrote:

Hi,



I encounter An "invalid Response" on a particular site.
This is what I get from squid :
--
The requested URL could not be retrieved

While trying to process the request:

GET
/nms/jsp/webForm.jsp?fo=bl&id=S7Nn7isL2GdroOkABgb1B35boKb4Z2SiMGMFGb/VEkJUIAIA
HTTP/1.1
Host: somesite.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9)
Gecko/20071025 Firefox/2.0.0.9
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en,en-us;q=0.7,fr-fr;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Proxy-Authorization: Basic Y8=
--

relaxed_header_parser value is at "warning".

I had a look at the headers, but couldn't find anything peculiar. But I'm not an
expert in this field.
Cache.log has said (I'm not 200% sure if it is related or not :
2007/11/05 16:11:53| ctx: enter level 30: '!ê«@'
2007/11/05 16:11:53| ctx: enter level 31: 'http://somesite.com/favicon.ico'
2007/11/05 16:11:53| ctx: enter level 32: 'http://somesite.com/favicon.ico'
2007/11/05 16:11:53| # ctx: suspiciously deep (32) nesting:

With Log_mime_headers on , I have
1194278039.445135 10.7.85.46 TCP_MISS/502 1996 GET
http://somesite.com/nms/jsp/webForm.jsp? user-andrew DIRECT/213.139.xxx.xxx
text/html   [Host: somesite.com\r\nUser-Agent: Mozilla/5.0 
(Windows; U; Windows
NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9\r\nAccept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\nAccept-Language:
en,en-us;q=0.7,fr-fr;q=0.3\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nProxy-Connection:
keep-alive\r\nProxy-Authorization: Basic YXsnipcm8=\r\nPragma:
no-cache\r\nCache-Control: no-cache\r\n][HTTP/1.0 502 Bad 
Gateway\r\nServer:
squid\r\nDate: Mon, 05 Nov 2007 15:53:59 GMT\r\nContent-Type:
text/html\r\nContent-Length: 1740\r\nExpires: Mon, 05 Nov 2007 15:53:59
GMT\r\nX-Squid-Error: ERR_INVALID_RESP 0\r\n\r]

Two tcpdumps, one from the squid server, another one from another internet
access point, show strange characters just between the headers and the html
stanza. See the "5ea" , then the "1" , and the "0".
But this is through Wireshark and I'm not sure about the exactness.


Wireshark is exact to the bit.



--
GET /nms/jsp/webForm.jsp?fo=bl&id=S7Nn9L2GdroOkABgb1B35boKb4Z2SiMGMFGb/VEkJUIAIA
HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: fr
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)
Host: somesite.com
Connection: Keep-Alive

HTTP/1.1 200 OK
Date: Tue, 06 Nov 2007 04:42:03 GMT
Server: Apache/2.0.52 (Red Hat)
Transfer-Encoding: chunked


For starters the server is broken and throwing object that squid can't 
handle back at squid. Chunked encoding must not be sent to a HTTP/1.0 
client.
IIRC there was one aborted 2.6 release of squid that tried to cope, but 
that was reverted out from main due to problems. Henrik would know more 
on that.

Check you are running a recent 2.6 stable.


Amos


Re: [squid-users] Invalid Response: Blank HTTP Reply HDR

2007-11-08 Thread Chris Robertson

Robin wrote:

Hi,

I have recently setup a squid proxy on centos 4.5 using the default
package which is 2.5.STABLE14.
  


The standard answer is "Upgrade to a supported version (2.6 Stable16 as 
of this writing)".  Grab the source and compile, or grab the Fedora SRPM 
and rpmbuild (I know that the FC7 SRPM works on CentOS 4, but I haven't 
tested FC8's version).  Possible alternative below.



I have some problems with some pages on certain web apps (like
monster.co.uk) which result in an Invalid Response error page. When I
go through the logs it seems that the web server is returning a blank
response header (see below).

Unfortunately the web app providers are unresponsive and refuse to
make any changes since it is working for the other users. Is there any
configuration change/ workaround I can apply to allow my users to
access these sites?
  


Look into the relaxed_http_parser directive in your squid.conf.  It 
should default to "on", but if it's been changed, this might be the cause.



Here is the error message, please let me know if I should supply any
more information.

2007/11/08 14:42:27| ctx: enter level  0:
'http://client.thomasinternational.net/client/Reports_ViewExisting.aspx?~VGVzdFR5cGU9MSY='
2007/11/08 14:42:27| httpProcessReplyHeader: key
'9F7879BB02C18F9C4CD9D7D227286BD6'
2007/11/08 14:42:27| GOT HTTP REPLY HDR:
-


--
2007/11/08 14:42:27| cleaning hdr: 0x8f9e458 owner: 2
2007/11/08 14:42:27| init-ing hdr: 0x8f9e458 owner: 2
2007/11/08 14:42:27| 0x8f9e458 lookup for 38
2007/11/08 14:42:27| 0x8f9e458 lookup for 9
2007/11/08 14:42:27| 0x8f9e458 lookup for 22
2007/11/08 14:42:27| cleaning hdr: 0x8f9e458 owner: 2
2007/11/08 14:42:27| init-ing hdr: 0x8f9e458 owner: 2
2007/11/08 14:42:27| 0x8f9e458 lookup for 38
2007/11/08 14:42:27| 0x8f9e458 lookup for 9
2007/11/08 14:42:27| 0x8f9e458 lookup for 22
2007/11/08 14:42:27| httpProcessReplyHeader: Non-HTTP-compliant header: '
'
2007/11/08 14:42:27| ctx: exit level  0

Any information/help/advice greatfully received.

Thanks,

Robin
  


Chris


Re: [squid-users] Invalid Response error

2005-06-30 Thread Henrik Nordstrom



On Thu, 30 Jun 2005, squid squid wrote:


> 2005/06/27 14:54:20| ctx: enter level  0:
> 'http://app.internal.com./cyberdocs/Libraries/Common/viewdocact.asp?
> doc=10763&lib=EPASLIB&file=.pdf&Frameset=Created&rendition=native'
> 2005/06/27 14:54:20| WARNING: found two conflicting content-length 
headers

> in {Date: Mon, 27 Jun 2005 06:57:14 GMT
> Connection: keep-alive
> Content-Length: 712267
  ^^
> Content-Disposition: inline;filename=HUMANRESOURCE TRANSFORMATION.PDF
> Accept-Ranges: bytes
> Connection: Keep-Alive
> Content-Length: 128001
  ^^
> Content-Type: application/pdf
> Expires: Mon, 31 Dec 1990 16:00:00 GMT
> Cache-control: private
> }


Is there any way to solve the said error from squid end??? If no, any idea 
how can this error be resolved from the webserver end??? I do not have 
accessed to the said webserver and would need to relay the resolution to the 
administrator of the webserver.


They need to fix the web server to send a single correct content-length 
header. Not two indicating different sizes of the same response.


There is a patch to Squid to ignore this web server error if you do 
not care:


  
http://www.squid-cache.org/Versions/v2/2.5/bugs/#squid-2.5.STABLE10-content_length

Regards
Henrik


Re: [squid-users] Invalid Response error

2005-06-29 Thread squid squid
Is there any way to solve the said error from squid end??? If no, any idea 
how can this error be resolved from the webserver end??? I do not have 
accessed to the said webserver and would need to relay the resolution to the 
administrator of the webserver. Thank you.



From: Matus UHLAR - fantomas <[EMAIL PROTECTED]>
To: squid-users@squid-cache.org
Subject: Re: [squid-users] Invalid Response error
Date: Wed, 29 Jun 2005 16:57:43 +0200

On 29.06 12:26, squid squid wrote:
> I am using Squid 2.5Stable10 and users encountered the following error
> when accessing one of the applications from their PC thru' the said 
squid

> proxy:
>
> Invalid Response
[deleted]

> Cache.log showed the following:
>
> 2005/06/27 14:54:20| ctx: enter level  0:
> 'http://app.internal.com./cyberdocs/Libraries/Common/viewdocact.asp?
> doc=10763&lib=EPASLIB&file=.pdf&Frameset=Created&rendition=native'
> 2005/06/27 14:54:20| WARNING: found two conflicting content-length 
headers

> in {Date: Mon, 27 Jun 2005 06:57:14 GMT
> Connection: keep-alive
> Content-Length: 712267
  ^^
> Content-Disposition: inline;filename=HUMANRESOURCE TRANSFORMATION.PDF
> Accept-Ranges: bytes
> Connection: Keep-Alive
> Content-Length: 128001
  ^^
> Content-Type: application/pdf
> Expires: Mon, 31 Dec 1990 16:00:00 GMT
> Cache-control: private
> }
> 2005/06/27 14:54:20| ctx: exit level  0

The most common reason... two Content-Length lines with different value.
It's caused by broken HTTP server.

> Pls advise what is the cause of the above error and how can it be
> resolved??? Can the said problem be resolved from the application server
> end or squid proxy server end???

it has to be solved from the HTTP server end...
--
Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Support bacteria - they're the only culture some people have.


_
Keep track of Singapore & Malaysia stock prices. 
http://www.msn.com.sg/money/




Re: [squid-users] Invalid Response error

2005-06-29 Thread Matus UHLAR - fantomas
On 29.06 12:26, squid squid wrote:
> I am using Squid 2.5Stable10 and users encountered the following error
> when accessing one of the applications from their PC thru' the said squid
> proxy:
> 
> Invalid Response
[deleted]

> Cache.log showed the following:
> 
> 2005/06/27 14:54:20| ctx: enter level  0: 
> 'http://app.internal.com./cyberdocs/Libraries/Common/viewdocact.asp?
> doc=10763&lib=EPASLIB&file=.pdf&Frameset=Created&rendition=native'
> 2005/06/27 14:54:20| WARNING: found two conflicting content-length headers 
> in {Date: Mon, 27 Jun 2005 06:57:14 GMT
> Connection: keep-alive
> Content-Length: 712267
  ^^
> Content-Disposition: inline;filename=HUMANRESOURCE TRANSFORMATION.PDF
> Accept-Ranges: bytes
> Connection: Keep-Alive
> Content-Length: 128001
  ^^
> Content-Type: application/pdf
> Expires: Mon, 31 Dec 1990 16:00:00 GMT
> Cache-control: private
> }
> 2005/06/27 14:54:20| ctx: exit level  0

The most common reason... two Content-Length lines with different value.
It's caused by broken HTTP server.

> Pls advise what is the cause of the above error and how can it be 
> resolved??? Can the said problem be resolved from the application server 
> end or squid proxy server end???

it has to be solved from the HTTP server end...
-- 
Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Support bacteria - they're the only culture some people have. 


RE: [squid-users] Invalid Response ERROR - Set-Cookie ?

2005-06-15 Thread Henrik Nordstrom

On Mon, 6 Jun 2005 [EMAIL PROTECTED] wrote:


You are right; the error is because there is no blank line delineating
the response headers from the response body.  What STABLE release
started to enforce this?  It must be between STABLE6 and STABLE10.


http://www.squid-cache.org/Advisories/SQUID-2005_5.txt


Just curious - does the case of response headers matter at all?
It was hard to tell reading the RFCs if the case of the header name was 
important.


RFC 2616 4.2 Message Headers

   HTTP header fields, which include general-header (section 4.5),
   request-header (section 5.3), response-header (section 6.2), and
   entity-header (section 7.1) fields, follow the same generic format as
   that given in Section 3.1 of RFC 822 [9]. Each header field consists
   of a name followed by a colon (":") and the field value. Field names
   are case-insensitive. The field value MAY be preceded by any amount
   of LWS, though a single SP is preferred. Header fields can be
   extended over multiple lines by preceding each extra line with at
   least one SP or HT. Applications ought to follow "common form", where
   one is known or indicated, when generating HTTP constructs, since
   there might exist some implementations that fail to accept anything
   beyond the common forms.

Regards
Henrik


RE: [squid-users] Invalid Response ERROR - Set-Cookie ?

2005-06-05 Thread Ken.Thomson
-Original Message-
On Wed, 1 Jun 2005 [EMAIL PROTECTED] wrote:

> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Wed, 01 Jun 2005 03:19:35 GMT
> Content-type: text/html
> set-cookie: F=###
> 

There must be a blank line after the headers before HTML starts.. (this 
signals the end of the headers).

What did cache.log say?

Regards
Henrik
-End Original Message-

Hi Henrik,

You are right; the error is because there is no blank line delineating
the response headers from the response body.  What STABLE release
started to enforce this?  It must be between STABLE6 and STABLE10.

Just curious - does the case of response headers matter at all?  It was
hard to tell reading the RFCs if the case of the header name was
important.

Thanks,
Ken.


Re: [squid-users] Invalid Response ERROR - Set-Cookie ?

2005-06-05 Thread Henrik Nordstrom



On Wed, 1 Jun 2005 [EMAIL PROTECTED] wrote:


HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Wed, 01 Jun 2005 03:19:35 GMT
Content-type: text/html
set-cookie: F=###



There must be a blank line after the headers before HTML starts.. (this 
signals the end of the headers).


What did cache.log say?

Regards
Henrik


RE: [squid-users] Invalid Response

2005-02-22 Thread Jacobi Michael CRPH
Thank you! I just put in STABLE9-RC1-20050222 and it resolved the users' issue.

Mike Jacobi

-Original Message-
From: Henrik Nordstrom [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 20, 2005 22:06
To: Jacobi Michael CRPH
Cc: Henrik Nordstrom; Chris Robertson; =?X-UNKNOWN?Q?'Johan_Hen=E6s'?=;
Squid Users
Subject: RE: [squid-users] Invalid Response


On Sun, 20 Feb 2005, Jacobi Michael CRPH wrote:

> Is this in the daily autogenerated version of STABLE8?

Yes, it is in 2.5.STABLE9-RC1 and later.

Regards
Henrik


RE: [squid-users] Invalid Response

2005-02-20 Thread Henrik Nordstrom
On Sun, 20 Feb 2005, Jacobi Michael CRPH wrote:
Is this in the daily autogenerated version of STABLE8?
Yes, it is in 2.5.STABLE9-RC1 and later.
Regards
Henrik


RE: [squid-users] Invalid Response

2005-02-20 Thread Jacobi Michael CRPH
Is this in the daily autogenerated version of STABLE8?

Mike Jacobi

-Original Message-
From: Henrik Nordstrom [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 19, 2005 6:27 PM
To: Henrik Nordstrom
Cc: Chris Robertson; =?X-UNKNOWN?Q?'Johan_Hen=E6s'?=; Jacobi Michael
CRPH; Squid Users
Subject: RE: [squid-users] Invalid Response


On Sat, 19 Feb 2005, Henrik Nordstrom wrote:

>> You all might find the thread at
>> http://www.mail-archive.com/squid-users@squid-cache.org/msg24333.html more
>> usefull.  Specifically the directive given at
>> http://www.mail-archive.com/squid-users@squid-cache.org/msg24383.html.
>> 
>> Check the squid.conf.default, as I'm sure usage of that directive
>> (ignore_header_whitespace for the impatient) is outlined there.
>
> ignore_header_whitespace is named relaxed_header_parser these days.
>
> And in addition it won't help for this specific case, and also defaults to 
> it's softest "on" mode..

Update: With the patch proposed in bug #1242 Squid again ignores this 
quite broken HTTP response with a warning in cache.log.

Regards
Henrik


RE: [squid-users] Invalid Response

2005-02-19 Thread Henrik Nordstrom
On Sat, 19 Feb 2005, Henrik Nordstrom wrote:
You all might find the thread at
http://www.mail-archive.com/squid-users@squid-cache.org/msg24333.html more
usefull.  Specifically the directive given at
http://www.mail-archive.com/squid-users@squid-cache.org/msg24383.html.
Check the squid.conf.default, as I'm sure usage of that directive
(ignore_header_whitespace for the impatient) is outlined there.
ignore_header_whitespace is named relaxed_header_parser these days.
And in addition it won't help for this specific case, and also defaults to 
it's softest "on" mode..
Update: With the patch proposed in bug #1242 Squid again ignores this 
quite broken HTTP response with a warning in cache.log.

Regards
Henrik


RE: [squid-users] Invalid Response

2005-02-19 Thread Henrik Nordstrom

On Thu, 17 Feb 2005, Chris Robertson wrote:
You all might find the thread at
http://www.mail-archive.com/squid-users@squid-cache.org/msg24333.html more
usefull.  Specifically the directive given at
http://www.mail-archive.com/squid-users@squid-cache.org/msg24383.html.
Check the squid.conf.default, as I'm sure usage of that directive
(ignore_header_whitespace for the impatient) is outlined there.
ignore_header_whitespace is named relaxed_header_parser these days.
And in addition it won't help for this specific case, and also defaults to 
it's softest "on" mode..

Regards
Henrik


RE: [squid-users] Invalid Response

2005-02-17 Thread Johan Henæs
Hmm I did search for it, but all i find is "TAG: uri_whitespace"..

Trying "Allow", the "whitespace" entry in the log Is gone, but the problem is 
still there :

---cache.log---
2005/02/17 22:56:48| ctx: enter level  0: 
'http://visualiser.xxx.no/cgi-bin/login.exe'
2005/02/17 22:56:48| WARNING: unparseable HTTP header field near {HTTP/1.0 200 
Ok
Set-Cookie: UserID=GRAFISKTEAM; path=/cgi-bin; expires=Wednesday, 17-Jan-2038 
23:00:00 GMT;
Set-Cookie: PWD=4752414649534b5445414d; path=/cgi-bin; expires=Wednesday, 
17-Jan-2038 23:00:00 GMT;
Set-Cookie: Time=1108677430; path=/cgi-bin; expires=Wednesday, 17-Jan-2038 
23:00:00 GMT;
Refresh: 5; URL=/cgi-bin/intervisindex.exe

Pragma: no-cache
Content-type: text/html
}


Best regards,

Johan
-Original Message-
From: Chris Robertson [mailto:[EMAIL PROTECTED] 
Sent: 17. februar 2005 22:32
To: Johan Henæs; Jacobi Michael CRPH; squid-users@squid-cache.org
Subject: RE: [squid-users] Invalid Response

You all might find the thread at
http://www.mail-archive.com/squid-users@squid-cache.org/msg24333.html more
usefull.  Specifically the directive given at
http://www.mail-archive.com/squid-users@squid-cache.org/msg24383.html.

Check the squid.conf.default, as I'm sure usage of that directive
(ignore_header_whitespace for the impatient) is outlined there.

Chris

-Original Message-
From: Johan Henæs [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 12:04 PM
To: Jacobi Michael CRPH; squid-users@squid-cache.org
Subject: RE: [squid-users] Invalid Response


Pretty much my scenario as well. I do not even know if the company that
built the webapp still is around. And I need a newer version of squid for
other servers, so I am stuck just like You..
BUT when trying an older version things do work, so if we do not get any
better answers - that might be the solution - even though I hate it :-)

Johan

-Original Message-
From: Jacobi Michael CRPH [mailto:[EMAIL PROTECTED] 
Sent: 17. februar 2005 21:58
To: Johan Henæs; squid-users@squid-cache.org
Subject: RE: [squid-users] Invalid Response

I know the ORACLE_HOME list is the invalid one.  I need a way to get my
squid to ingore the problem, since I am having trouble in convincing the
owner of the server that this is a bug in their server setup, and that they
should fix it, since 'it works for us' and  'what you did broke it'...   ;->

Mike Jacobi

-Original Message-
From: Johan Henæs [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 15:34
To: Jacobi Michael CRPH; squid-users@squid-cache.org; ~DMPS PMS400B4L
Subject: RE: [squid-users] Invalid Response


Hi !

I expeirienced the same problems, and found this :

http://www.mail-archive.com/squid-users@squid-cache.org/msg25634.html

Best regards, 

Johan

-Original Message-
From: Jacobi Michael CRPH [mailto:[EMAIL PROTECTED] 
Sent: 17. februar 2005 21:22
To: squid-users@squid-cache.org; ~DMPS PMS400B4L
Subject: [squid-users] Invalid Response

I have just upgrade to 2.5STABLE8-20050217 (from STABLE7).  I am getting
users that are getting the INVALID RESPONSE error in response to a page with
the following headers:

GET http://navynt.aera.com/EFP2.pl
HTTP/1.1 200 OK
Server: Microsoft-IIS/4.0
Date: Thu, 17 Feb 2005 20:35:40 GMT
ORACLE_HOME not set!
Content-type: text/html


Is there a was to get squid to just shut up and ignore that ORACLE_HOME
line?

Mike Jacobi


RE: [squid-users] Invalid Response

2005-02-17 Thread Chris Robertson
You all might find the thread at
http://www.mail-archive.com/squid-users@squid-cache.org/msg24333.html more
usefull.  Specifically the directive given at
http://www.mail-archive.com/squid-users@squid-cache.org/msg24383.html.

Check the squid.conf.default, as I'm sure usage of that directive
(ignore_header_whitespace for the impatient) is outlined there.

Chris

-Original Message-
From: Johan Henæs [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 12:04 PM
To: Jacobi Michael CRPH; squid-users@squid-cache.org
Subject: RE: [squid-users] Invalid Response


Pretty much my scenario as well. I do not even know if the company that
built the webapp still is around. And I need a newer version of squid for
other servers, so I am stuck just like You..
BUT when trying an older version things do work, so if we do not get any
better answers - that might be the solution - even though I hate it :-)

Johan

-Original Message-
From: Jacobi Michael CRPH [mailto:[EMAIL PROTECTED] 
Sent: 17. februar 2005 21:58
To: Johan Henæs; squid-users@squid-cache.org
Subject: RE: [squid-users] Invalid Response

I know the ORACLE_HOME list is the invalid one.  I need a way to get my
squid to ingore the problem, since I am having trouble in convincing the
owner of the server that this is a bug in their server setup, and that they
should fix it, since 'it works for us' and  'what you did broke it'...   ;->

Mike Jacobi

-Original Message-
From: Johan Henæs [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 15:34
To: Jacobi Michael CRPH; squid-users@squid-cache.org; ~DMPS PMS400B4L
Subject: RE: [squid-users] Invalid Response


Hi !

I expeirienced the same problems, and found this :

http://www.mail-archive.com/squid-users@squid-cache.org/msg25634.html

Best regards, 

Johan

-Original Message-
From: Jacobi Michael CRPH [mailto:[EMAIL PROTECTED] 
Sent: 17. februar 2005 21:22
To: squid-users@squid-cache.org; ~DMPS PMS400B4L
Subject: [squid-users] Invalid Response

I have just upgrade to 2.5STABLE8-20050217 (from STABLE7).  I am getting
users that are getting the INVALID RESPONSE error in response to a page with
the following headers:

GET http://navynt.aera.com/EFP2.pl
HTTP/1.1 200 OK
Server: Microsoft-IIS/4.0
Date: Thu, 17 Feb 2005 20:35:40 GMT
ORACLE_HOME not set!
Content-type: text/html


Is there a was to get squid to just shut up and ignore that ORACLE_HOME
line?

Mike Jacobi


RE: [squid-users] Invalid Response

2005-02-17 Thread Johan Henæs
Pretty much my scenario as well. I do not even know if the company that built 
the webapp still is around. And I need a newer version of squid for other 
servers, so I am stuck just like You..
BUT when trying an older version things do work, so if we do not get any better 
answers - that might be the solution - even though I hate it :-)

Johan

-Original Message-
From: Jacobi Michael CRPH [mailto:[EMAIL PROTECTED] 
Sent: 17. februar 2005 21:58
To: Johan Henæs; squid-users@squid-cache.org
Subject: RE: [squid-users] Invalid Response

I know the ORACLE_HOME list is the invalid one.  I need a way to get my squid 
to ingore the problem, since I am having trouble in convincing the owner of the 
server that this is a bug in their server setup, and that they should fix it, 
since 'it works for us' and  'what you did broke it'...   ;->

Mike Jacobi

-Original Message-
From: Johan Henæs [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 15:34
To: Jacobi Michael CRPH; squid-users@squid-cache.org; ~DMPS PMS400B4L
Subject: RE: [squid-users] Invalid Response


Hi !

I expeirienced the same problems, and found this :

http://www.mail-archive.com/squid-users@squid-cache.org/msg25634.html

Best regards, 

Johan

-Original Message-
From: Jacobi Michael CRPH [mailto:[EMAIL PROTECTED] 
Sent: 17. februar 2005 21:22
To: squid-users@squid-cache.org; ~DMPS PMS400B4L
Subject: [squid-users] Invalid Response

I have just upgrade to 2.5STABLE8-20050217 (from STABLE7).  I am getting users 
that are getting the INVALID RESPONSE error in response to a page with the 
following headers:

GET http://navynt.aera.com/EFP2.pl
HTTP/1.1 200 OK
Server: Microsoft-IIS/4.0
Date: Thu, 17 Feb 2005 20:35:40 GMT
ORACLE_HOME not set!
Content-type: text/html


Is there a was to get squid to just shut up and ignore that ORACLE_HOME line?

Mike Jacobi


RE: [squid-users] Invalid Response

2005-02-17 Thread Jacobi Michael CRPH
I know the ORACLE_HOME list is the invalid one.  I need a way to get my squid 
to ingore the problem, since I am having trouble in convincing the owner of the 
server that this is a bug in their server setup, and that they should fix it, 
since 'it works for us' and  'what you did broke it'...   ;->

Mike Jacobi

-Original Message-
From: Johan Henæs [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 15:34
To: Jacobi Michael CRPH; squid-users@squid-cache.org; ~DMPS PMS400B4L
Subject: RE: [squid-users] Invalid Response


Hi !

I expeirienced the same problems, and found this :

http://www.mail-archive.com/squid-users@squid-cache.org/msg25634.html

Best regards, 

Johan

-Original Message-
From: Jacobi Michael CRPH [mailto:[EMAIL PROTECTED] 
Sent: 17. februar 2005 21:22
To: squid-users@squid-cache.org; ~DMPS PMS400B4L
Subject: [squid-users] Invalid Response

I have just upgrade to 2.5STABLE8-20050217 (from STABLE7).  I am getting users 
that are getting the INVALID RESPONSE error in response to a page with the 
following headers:

GET http://navynt.aera.com/EFP2.pl
HTTP/1.1 200 OK
Server: Microsoft-IIS/4.0
Date: Thu, 17 Feb 2005 20:35:40 GMT
ORACLE_HOME not set!
Content-type: text/html


Is there a was to get squid to just shut up and ignore that ORACLE_HOME line?

Mike Jacobi


RE: [squid-users] Invalid Response

2005-02-17 Thread Johan Henæs
Hi !

I expeirienced the same problems, and found this :

http://www.mail-archive.com/squid-users@squid-cache.org/msg25634.html

Best regards, 

Johan

-Original Message-
From: Jacobi Michael CRPH [mailto:[EMAIL PROTECTED] 
Sent: 17. februar 2005 21:22
To: squid-users@squid-cache.org; ~DMPS PMS400B4L
Subject: [squid-users] Invalid Response

I have just upgrade to 2.5STABLE8-20050217 (from STABLE7).  I am getting users 
that are getting the INVALID RESPONSE error in response to a page with the 
following headers:

GET http://navynt.aera.com/EFP2.pl
HTTP/1.1 200 OK
Server: Microsoft-IIS/4.0
Date: Thu, 17 Feb 2005 20:35:40 GMT
ORACLE_HOME not set!
Content-type: text/html


Is there a was to get squid to just shut up and ignore that ORACLE_HOME line?

Mike Jacobi