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"?>
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"?>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Setting Content-Type when POSTing with LWP
by Moonie (Friar) on Aug 29, 2002 at 21:51 UTC | |
Re: Setting Content-Type when POSTing with LWP
by larryk (Friar) on Aug 29, 2002 at 21:59 UTC |
Back to
Seekers of Perl Wisdom