Peter,<br><br>Thanks for the help. Yes I get a header and then am looking to extract the body. <br><br>So to make sure I understand:<br><br>p = compile('Content-Length:\s(\d+)')<br><br>class SomeClient(basic.LineReceiver):<br>
def connectionMade(self):<br> self.transport.write('login: info\r\n\r\n') # log in ... then device starts sending events <br> <br> def lineReceived(self, line):<br> m = p.findall(line)<br> if m:<br>
self.body_length = m[0]<br> self.setRawMode()<br> <br> def rawDataReceived(self, data): <br> self.get_rest -= len(data)<br> set.lineMode()<br><br>Should something along those lines work?<br>
<br>David / Peter ... thanks again for the assistance!<br> <br>