in reply to Yet another POST question

You are not setting up up your 'POST' REQUEST correctly. There is no PARAM keyword being sent.

Update: correctly should be incorrectly doh!

Try this:


...
use LWP::UserAgent;
#use Commom module for convienence
use HTTP::Request::Common

my $ua = LWP::UserAgent->new();

$content<<EOC;
<xml>
<name>mitd</name>
</xml>
EOC

$ua->request( POST, 'http://somewhere.com/somexml.cgi',
[XML=>$content]);


At receiving end something like this:


my $xmaldoc = $q->param('XML');

xmldoc now contains your .. well .. xml document.

mitd-Made in the Dark
'My favourite colour appears to be grey.'

Replies are listed 'Best First'.
Re: Re: Yet another POST question
by toadi (Chaplain) on Jul 20, 2001 at 11:56 UTC
    yes i know it's not setup correctly :) But I don't know what sort of param is going to be transmitted from the other end. But I sorted that out now with my receiving program. But thanx anyway to post the correction!

    --
    My opinions may have changed,
    but not the fact that I am right