http://qs321.pair.com?node_id=193917

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

I'm using LWP to do a multi-part POST. In the body section associated with the file the header Content-Type header is set to Text/Plain.
How do I set it to something else (like Application/XML)?
example:

Content-Disposition: form-data; name="fname"; filename="deposit1.xml"
Content-Length: 1076
Content-Type: text/plain
<?xml version="1.0" encoding="utf-8"?>