"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
There is a module from the POE project which performs something similar to this task - POE::Filter::HTTPD. This module can be used to convert a raw stream into a HTTP::Request object and a HTTP::Response object into the corresponding stream of data. While this does not exactly meet your requirements, it should provide a good start on any endeavour to create such a tool.
Note too, that the filter modules from the POE project can be used independently of POE and as such, there is no requirement to employ this entire framework (although, depending upon your task, it could make things immensely easier).
perl -le 'print+unpack("N",pack("B32","00000000000000000000001001000100"))' In reply to Re: create a HTTP::Response object from a raw buffer?
by rob_au
|
|