Closed GoogleCodeExporter closed 9 years ago
I found the problem:
def unpack(self, buf):
f = cStringIO.StringIO(buf)
line = f.readline()
l = line.strip().split()
if len(l) != 3 or l[0] not in self.__methods or not l[2].startswith(self.__proto):
raise dpkt.UnpackError('invalid request: %r' % line)
However, in an HTTP/0.9 request, there is no protocol field. An HTTP/0.9 GET
request looks like
GET /
so the unpack method throws dpkt.UnpackErrors because there are only 2 elements
in list l . This is a problem for F5 HTTP monitors, which use HTTP/0.9 by
default.
Original comment by jeffsilv...@gmail.com
on 22 Dec 2010 at 11:18
[deleted comment]
[deleted comment]
[deleted comment]
This issue was closed by revision r80.
Original comment by jon.ober...@gmail.com
on 6 Jan 2011 at 4:50
Thanks for the report Jeff.
Fixed in r80!
Original comment by jon.ober...@gmail.com
on 6 Jan 2011 at 4:50
Original issue reported on code.google.com by
jeffsilv...@gmail.com
on 22 Dec 2010 at 10:52