Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XML-Parameters from the Server Side

1 view
Skip to first unread message

Khalid Naji

unread,
Nov 13, 2009, 6:13:55 AM11/13/09
to beginn...@perl.org
how to read the XML-Parameters from the Server Side:

I use a Script client.pl to send XML-Parameters to a Script "server.pl"

client.pl:

...
my $uaB=new LWP::UserAgent;
$uaB->agent("TEST CALL" );

my $ReqB=new HTTP::Request GET => 'server.pl';
$ReqB->authorization_basic('TOTO','Password');
$ReqB->content_type('text/xml');
$ReqB->content("...<Parameter1>12345</Parameter1>...");
...

How can I read the XML-Parameters (Parameter1, etc) from the Server Side
"server.pl"?

Thank you
KN


Naji, Khalid

unread,
Nov 17, 2009, 8:57:40 AM11/17/09
to beginn...@perl.org
Problem resolved. I had an error in my Script: it used the CGI-Environment Variable QUERY_STRING instead off CONTENT_LENGTH.
KN

> -----Ursprüngliche Nachricht-----
> Von: Naji, Khalid [mailto:Khali...@bsz-bw.de]
> Gesendet: Freitag, 13. November 2009 12:14
> An: beginn...@perl.org
> Betreff: XML-Parameters from the Server Side

> --
> To unsubscribe, e-mail: beginners-cg...@perl.org
> For additional commands, e-mail: beginners...@perl.org
> http://learn.perl.org/
>
>


0 new messages