Hi all! I'm currently writing a filtering proxy using HTTP::Daemon and LWP. Currently I use the LWP Useragent to fetch the request and then send the reponse back to the browser. My question is how to send the data imediately back to the browser when is has not the text/html mimetype without waiting for the whole response. In the lwpcookbook is mentioned that it is possible give a codereference as argument to the Useragents request methods. But is it then possible to determine the mimetype of the response and store it in a variable for filtering? If yes how could that be done?
Any example code would be appreciated! If you didn't understood what I am trying to do just ask - it's a little bit hard to say in english for me :-) TIA Andi
