Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I need some pointers about how I might send a jar file using HTTP::Daemon. Is there already a module for this or am I missing something obvious? Is there a way I can send it in an XML document?

Replies are listed 'Best First'.
Re: How do I send a jar file over http
by EvanK (Chaplain) on Oct 04, 2007 at 17:20 UTC
    Assuming I understand your question, you'd send it much the same way you'd send any binary file...Though I've never used HTTP::Daemon, so I'm not sure of any idiosyncracies it might have. Just be sure to send the appropriate headers, such as a Content-Type with the appropriate MIME type, and a if you want to make sure the end user downloads the file, then you can optionally send a Content-Disposition header. For example:
    Content-Type: application/java-archive Content-disposition: attachment; filename=destinationfilename.jar
    Hope that helps somewhat.

    __________
    Systems development is like banging your head against a wall...
    It's usually very painful, but if you're persistent, you'll get through it.