XP is just a number | |
PerlMonks |
Setting Content-Type when POSTing with LWPby koscher (Initiate) |
on Aug 29, 2002 at 21:10 UTC ( [id://193917]=perlquestion: print w/replies, xml ) | Need Help?? |
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"?>
Back to
Seekers of Perl Wisdom
|
|