Forum How do I...?

Pass an HTTP header to Prince

Worker
Is it possible to have Prince read input from a file (or standard input) where that input is a complete HTTP response, including headers?

I have a Perl script that performs an HTTP request, and based on the headers in the response may decide to pass the response through Prince. When it does decide to use Prince, it has to:
1) Separate the HTTP header from the body.
2) Convert Cookie-related header fields to a cookiejar file.
3) Convert the Content-Type header field to a "-i" parameter (not really, but it could).

Prince already has the ability to handle HTTP headers and do smart things with them when it performs the HTTP request itself. Is there a way to invoke this smart-ness via a local file (or standard input) as well?
mikeday
There is no option for this at the moment, sorry.