0

I have no experience with CGI scripts or any web development. I'm developing a client app and just want to have a small CGI script to send and retrieve XML data to test out my client.

Right now I'm doing a HTTP GET to get the XML files I need. Now I'm changing my client to do POST with request containing XML data and expecting XML back. I want to have a small script that just returns the contents of an XML file that i already have.

Can anybody please point me to sample code or perl modules that would help.

2
  • You mean like search.cpan.org/perldoc?CGI ? Commented Apr 29, 2010 at 16:19
  • Thanks!! I'm just reading through some CGI tutorials and will try using this module. Commented Apr 29, 2010 at 17:56

2 Answers 2

1

As with anything you want to send as a response to a CGI invocation, select the right MIME type and write the appropriate data in the message body.

Since you say that you have no experience with CGI, try looking through some CGI tutorials to get acquainted with the technology. :)

Sign up to request clarification or add additional context in comments.

Comments

0

I would suggest giving XML::Simple a spin.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.