Quantcast

Invalid Response/Malformed

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Invalid Response/Malformed

Bruno Guerreiro


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:

No.     Time        Source                Destination           Protocol Info
   7562 44.471572   w.x.y.z           85.88.134.195         HTTP     GET / HTTP/1.0

Frame 7562 (742 bytes on wire, 742 bytes captured)
Ethernet II, Src: Micro-St_41:bf:60 (00:19:db:41:bf:60), Dst: Nortel_3a:00:43 (00:1c:17:3a:00:43)
Internet Protocol, Src: w.x.y.z (w.x.y.z), Dst: 85.88.134.195 (85.88.134.195)
Transmission Control Protocol, Src Port: 35965 (35965), Dst Port: http (80), Seq: 1, Ack: 1, Len: 676
    Source port: 35965 (35965)
    Destination port: http (80)
    Sequence number: 1    (relative sequence number)
    [Next sequence number: 677    (relative sequence number)]
    Acknowledgement number: 1    (relative ack number)
    Header length: 32 bytes
    Flags: 0x18 (PSH, ACK)
    Window size: 5888 (scaled)
    Checksum: 0x7246 [correct]
    Options: (12 bytes)
Hypertext Transfer Protocol
    GET / HTTP/1.0\r\n
    Host: www.acp.pt\r\n
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8\r\n
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n
    Accept-Language: en-us,en;q=0.5\r\n
    Accept-Encoding: gzip,deflate\r\n
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
    Keep-Alive: 300\r\n
    Cookie: OAID=85d42a4578c83aec5c49fcf529626d18; __utma=10858660.1732473768.1237559664.1237559664.1237559664.1; __utmz=10858660.1237559664.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)\r\n
    Via: 1.1 bruno-guerreiro.dsii.ine.pt (squid/3.0.STABLE13)\r\n
    X-Forwarded-For: a.b.c.d\r\n
    Cache-Control: max-age=259200\r\n
    Connection: keep-alive\r\n
    \r\n

No.     Time        Source                Destination           Protocol Info
   7596 44.618841   w.x.y.z           85.88.134.195         HTTP     GET / HTTP/1.0

Frame 7596 (742 bytes on wire, 742 bytes captured)
Ethernet II, Src: Micro-St_41:bf:60 (00:19:db:41:bf:60), Dst: Nortel_3a:00:43 (00:1c:17:3a:00:43)
Internet Protocol, Src: w.x.y.z (w.x.y.z), Dst: 85.88.134.195 (85.88.134.195)
Transmission Control Protocol, Src Port: 36135 (36135), Dst Port: http (80), Seq: 1, Ack: 1, Len: 676
    Source port: 36135 (36135)
    Destination port: http (80)
    Sequence number: 1    (relative sequence number)
    [Next sequence number: 677    (relative sequence number)]
    Acknowledgement number: 1    (relative ack number)
    Header length: 32 bytes
    Flags: 0x18 (PSH, ACK)
    Window size: 5888 (scaled)
    Checksum: 0xb54e [correct]
    Options: (12 bytes)
Hypertext Transfer Protocol
    GET / HTTP/1.0\r\n
    Host: www.acp.pt\r\n
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8\r\n
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n
    Accept-Language: en-us,en;q=0.5\r\n
    Accept-Encoding: gzip,deflate\r\n
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
    Keep-Alive: 300\r\n
    Cookie: OAID=85d42a4578c83aec5c49fcf529626d18; __utma=10858660.1732473768.1237559664.1237559664.1237559664.1; __utmz=10858660.1237559664.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)\r\n
    Via: 1.1 bruno-guerreiro.dsii.ine.pt (squid/3.0.STABLE13)\r\n
    X-Forwarded-For: a.b.c.d\r\n
    Cache-Control: max-age=259200\r\n
    Connection: keep-alive\r\n
    \r\n

No.     Time        Source                Destination           Protocol Info
   7605 44.717636   w.x.y.z           85.88.134.195         HTTP     GET / HTTP/1.0

Frame 7605 (742 bytes on wire, 742 bytes captured)
Ethernet II, Src: Micro-St_41:bf:60 (00:19:db:41:bf:60), Dst: Nortel_3a:00:43 (00:1c:17:3a:00:43)
Internet Protocol, Src: w.x.y.z (w.x.y.z), Dst: 85.88.134.195 (85.88.134.195)
Transmission Control Protocol, Src Port: 48200 (48200), Dst Port: http (80), Seq: 1, Ack: 1, Len: 676
    Source port: 48200 (48200)
    Destination port: http (80)
    Sequence number: 1    (relative sequence number)
    [Next sequence number: 677    (relative sequence number)]
    Acknowledgement number: 1    (relative ack number)
    Header length: 32 bytes
    Flags: 0x18 (PSH, ACK)
    Window size: 5888 (scaled)
    Checksum: 0x4c17 [correct]
    Options: (12 bytes)
Hypertext Transfer Protocol
    GET / HTTP/1.0\r\n
    Host: www.acp.pt\r\n
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8\r\n
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n
    Accept-Language: en-us,en;q=0.5\r\n
    Accept-Encoding: gzip,deflate\r\n
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
    Keep-Alive: 300\r\n
    Cookie: OAID=85d42a4578c83aec5c49fcf529626d18; __utma=10858660.1732473768.1237559664.1237559664.1237559664.1; __utmz=10858660.1237559664.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)\r\n
    Via: 1.1 bruno-guerreiro.dsii.ine.pt (squid/3.0.STABLE13)\r\n
    X-Forwarded-For: a.b.c.d\r\n
    Cache-Control: max-age=259200\r\n
    Connection: keep-alive\r\n
    \r\n


Any ideas?

Bruno Guerreiro

Instituto Nacional de Estatística
DMSI  Departamento de Metodologia e Sistemas de Informação
Tel: +351 21 842 61 00


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Invalid Response/Malformed

Amos Jeffries
Administrator
>
>
> 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:


<snip many request info, with no matching reply info>

>
> 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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Invalid Response/Malformed

Bruno Guerreiro
In reply to this post by Bruno Guerreiro
Hi Amos,

> -----Original Message-----
> From: Amos Jeffries [mailto:[hidden email]]
> Sent: quarta-feira, 1 de Abril de 2009 2:38
> To: Bruno Guerreiro
> Cc: [hidden email]
> Subject: Re: [squid-users] Invalid Response/Malformed

<snip>

>
> 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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Invalid Response/Malformed

Amos Jeffries
Administrator
Bruno Guerreiro wrote:

> Hi Amos,
>
>> -----Original Message-----
>> From: Amos Jeffries [mailto:[hidden email]]
>> Sent: quarta-feira, 1 de Abril de 2009 2:38
>> To: Bruno Guerreiro
>> Cc: [hidden email]
>> Subject: Re: [squid-users] Invalid Response/Malformed
>
> <snip>
>
>> 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Invalid Response/Malformed

Ricardo Nuno
In reply to this post by Bruno Guerreiro
----- "Bruno Guerreiro" <[hidden email]> 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


Loading...