Like:

my $ua = LWP::UserAgent->new();
my $req = new HTTP::Request(POST=>$soap_endpoint);
$req->content($xml_data);
$req->header($field => $value);
my $res = $ua->request($req);


----- Original Message ----- 
From: "Roderick A. Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 14:17
Subject: XML via HTTP POST


> To protect the guilty I'll refer to it as the 'application'.
>
> We upgraded to the latest and greatest version of the 'application' for
> some new functionality but my interest is for the new API that lets me do
> stuff using HTTP POST of XML documents.  (We'll be able to rewrite the
> user interface completely and automate several processes that are GUI
> now.)
>
> So the reason for the protection is they have less than useful
> documentation for this new API.  Lots of protocol charts (mostly looks
> like the schemes) but no real exanmples.  So I'm out looking for methods
> to HTTP POST XML documents.  A search using google got me an example using
> LWP::UserAgent and it is pretty clear. It was in a message in the w3.org
> archives from October 2001.  Still I'd prefer some more examples before I
> put fingers to keys.
>
> Anyone on the list have code they're willing/able to share doing HTTP
> POSTs (of XML documents)?
>
>
> Thanks,
> Rod
> -- 
>   "Open Source Software - Sometimes you get more than you paid for..."

Reply via email to