Re: Reading TSIOBuffer content / bytes

2016-11-04 Thread Alan Carroll
Daniel, you might also look at examples/txn-data-sink in the source tree. If you only need output that might be simpler. On Friday, November 4, 2016 1:16 PM, Daniel Chang wrote: Thanks Nick, that was very helpful!  I found the relevant example in the ironbee source on github.  The tric

Re: Reading TSIOBuffer content / bytes

2016-11-04 Thread Daniel Chang
Thanks Nick, that was very helpful! I found the relevant example in the ironbee source on github. The trick is to iterate through all blocks in the TSIOBuffer and memcpy into a buffer. For anyone that's interested: https://github.com/ironbee/ironbee/blob/97b453afd9c3dc70342c6183a875bde22c9c4a76/

Re: Reading TSIOBuffer content / bytes

2016-11-03 Thread Nick Kew
On Wed, 2016-11-02 at 22:44 -0700, Daniel Chang wrote: > Hi dev, > > First email to this mailing list, excited to be here! I'm new to ATS > development so please bear with me. > > Briefly, I want to inspect the content data of HTTP responses for all of my > Transactions and store them on disk /