On Sunday 15 March 2009 14:55:25 Shelby Ramsey wrote:
> Peter,
>
> Thanks for the assistance. I think you and David have me on the right
> path. Just to clarify the protocol looks like this:
>
> Content-Length: 984
> Content-Type: text/event-xml
>
>
>
>$bunchofinfo ...
>
>
>
> Where t
On Saturday 14 March 2009 22:12:49 Shelby Ramsey wrote:
> Peter,
>
> Thanks for the help. Yes I get a header and then am looking to extract the
> body.
>
> So to make sure I understand:
>
> p = compile('Content-Length:\s(\d+)')
Of course I dont know anything about your protocol, but anyways:
> c
On Saturday 14 March 2009 19:54:04 Shelby Ramsey wrote:
> Peter,
>
> Thanks for the quick response. The issue isn't grabbing the content length
> ... but rather grabbing the body ...
>
> The protocol is TCP so the text (not binary) comes in streams ... so the
> body is / might be broken into strea
On Saturday 14 March 2009 18:33:02 Shelby Ramsey wrote:
> Hello:
>
> I've been playing with twisted (to take advantage of deferreds) and trying
> to accomplish this:
> -- log into a machine as a client
> -- send auth
> -- receive "events" from the machine
>
> The events have a Content-Length: