aardvark has asked for the wisdom of the Perl Monks concerning the following question:
The results are printed below:my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new; $req->method('POST'); $req->uri($servlet); $req->content_type('multipart/form-data'); $req->content("xmlmsg=$xmlmsg"); $req->authorization_basic($uid, $pass); # make the request to server my $res = $ua->request($req); print "\nREQUEST\n" . $req->as_string; print "\nRESPONSE\n" . $res->as_string;
Get Strong Together!!REQUEST POST http://myservername.com/LLS/GenPublishMessage Authorization: Basic Z2thaG46bWF4aW5lMTMxMw== User-Agent: libwww-perl/5.64 Content-Type: multipart/form-data xmlmsg=<?xml version="1.0" encoding="UTF-8" ?><message id="EA10" prior +ity="High" timezone="CET" user_type="I"><head><active><from>9-Jul-02 +11:20:00 </from><to>9-Jul-02 11:20:00 </to></active><author id="gkahn +"/><attribute type="CATEGORY" value="GEEVENT"/><attribute type="COUNT +RY" value="EUROAREA"/><entitlement_attribute type="PERIOD" value="Jul +"/><entitlement_attribute type="PREV2" value="3.32"/><entitlement_att +ribute type="PREV1" value="3.33"/><entitlement_attribute type="LATEST +" value="3.36"/><entitlement_attribute type="LBGE" value="3.33"/><ent +itlement_attribute type="MARKET" value="na"/></head><body><title>ECB +refinancing operation (average rate) </title><content>ECB </content>< +/body></message> RESPONSE HTTP/1.1 200 OK Connection: close Date: Wed, 31 Jul 2002 19:44:18 GMT Server: Netscape-Enterprise/4.1 Content-Type: text/xml Client-Date: Wed, 31 Jul 2002 19:44:18 GMT Client-Response-Num: 1 <?xml version="1.0"?> <LL_BULLETIN_BOARD_PUBLISHING STATUS="FAILED"> java.io.IOException: Separation boundary was not specified </LL_BULLETIN_BOARD_PUBLISHING>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Separation boundary in multipart/form-data POSTs
by Shendal (Hermit) on Jul 31, 2002 at 20:30 UTC | |
by aardvark (Pilgrim) on Jul 31, 2002 at 21:33 UTC | |
by Shendal (Hermit) on Jul 31, 2002 at 21:52 UTC | |
|
Re: Separation boundary in multipart/form-data POSTs
by aardvark (Pilgrim) on Aug 01, 2002 at 03:02 UTC | |
|
Re: Separation boundary in multipart/form-data POSTs
by hossman (Prior) on Jul 31, 2002 at 21:11 UTC |