Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Code follows:
=============================== I can connect to server, but the xml request is ignored...use LWP::UserAgent; use HTTP::Request::Common; # URL we're posting to my $URL = "http://whatever.com"; # The xml_request my $xml_req = <xml string></xml string>"; my $ua = LWP::UserAgent->new(); my $result = $ua->request(POST $URL, $xml_req); print "Content-type: text/plain\n\n"; print $result->as_string(); print $result->content();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: xml request
by fruiture (Curate) on Aug 04, 2002 at 16:29 UTC | |
by patiafrica (Initiate) on Aug 04, 2002 at 16:59 UTC | |
by fruiture (Curate) on Aug 04, 2002 at 17:09 UTC | |
by patiafrica (Initiate) on Aug 04, 2002 at 17:30 UTC | |
|
Re: xml request
by rjray (Chaplain) on Aug 04, 2002 at 23:15 UTC | |
by patiafrica (Initiate) on Aug 05, 2002 at 09:44 UTC | |
by rjray (Chaplain) on Aug 06, 2002 at 06:45 UTC |