in reply to Re^2: Sending unmatched HTTP Responses
in thread Sending unmatched HTTP Responses
Without knowing your further framework, it's hard to advise how to actually send the response. In the simplest way, you would get the client socket from your framework and do
print {$client_socket} $my_faked_response->as_string;
which would send the response to your client. Alternatively, look at HTTP::Proxy, which you can use to sit in between your client and the actual server to inject your own responses.
|
|---|