Yes, appears to work with the pasted code now.

I didn't use rawbody/rawwrite for things that shouldn't be modified and that is a good idea.

I think the libevent error/warning arose when I tried to combine writerawbody with bodywriter. I really should've kept the source...

Is there an easy way to operate on streams? or is the prefered way to write a stream class that takes a stream and operates on it while writing out?

On Thu, 20 Jun 2013 05:46:31 GMT, Sönke Ludwig wrote:

On Wed, 12 Jun 2013 11:11:10 GMT, maarten wrote:

This is what I see when reading the source of youtube.com:
(insert perfectly valid html)

(...)

It's like it's getting cut off, like the connection is getting flushed prematurely.

Using the pasted code youtube works fine for me, at least on Windows (also using the libevent back end). I think this needs some debugging by looking at the exact TCP traffic.