in reply to Re^2: libpcap, netpacket and decoding http data
in thread libpcap, netpacket and decoding http data

You can write things to disk, but you will first accumulate the complete download in RAM. The module documentation says so.

  • Comment on Re^3: libpcap, netpacket and decoding http data

Replies are listed 'Best First'.
Re^4: libpcap, netpacket and decoding http data
by gk2010 (Initiate) on Mar 17, 2010 at 15:55 UTC
    Am I looking at a different module or simply reading this document wrong. http://search.cpan.org/~corion/Sniffer-HTTP-0.19/lib/Sniffer/HTTP.pm "As the whole response data is accumulated in memory you should be aware of memory issues. If you want to write stuff directly to disk, you will need to submit patches to Sniffer::Connection::HTTP."

      Note the directly. Currently, the module accumulates the complete request payload in RAM until the request has completed. Then it returns that data to your callback (for writing) and afterwards the memory is released.

        I was reading it wrong then. I need to go back and figure out where i goofed on trying to dump the data. thanks again