wideback has asked for the wisdom of the Perl Monks concerning the following question:

I have a client using ajax and a server running apache/perl. At some point the client creates an HTTP post request to the server (URL pointing to http://server-address/cgi-bin/my_script.pl) with an xml document in the body of the request. With "my_script.pl" I want to read the xml document. How can I do this? Are there any modules available? Thanks

Replies are listed 'Best First'.
Re: Process HTTP POST request
by derby (Abbot) on Jul 09, 2007 at 19:32 UTC
Re: Process HTTP POST request
by snopal (Pilgrim) on Jul 09, 2007 at 19:43 UTC
    Get to know XML::Twig. It is your best friend for this type of work.
Re: Process HTTP POST request
by dmitri (Priest) on Jul 10, 2007 at 00:01 UTC
    Under normal conditions (Apache), you should just be able to read the request body from STDIN.