in reply to Re^6: Check if a scalar contains a complete HTTP request
in thread Check if a scalar contains a complete HTTP request

With this goal it might be a good idea to have a look at App::HTTP_Proxy_IMP. This is an SSL intercepting proxy written in Perl, using IO::Socket::SSL::Intercept for SSL interception and Net::Inspect::L7::HTTP for extracting the HTTP requests out of the data stream. And it also features a plugin interface where you could add your own traffic inspection and manipulation.

Or you might go to the Python world and have a look at mitmproxy.

  • Comment on Re^7: Check if a scalar contains a complete HTTP request