Accepting HTTP Post

R

Raj

Hi,

I was wondering if it is straightforward to allow someone to post an XML
file to a Perl-CGI script on a web server and storing that file on the web
server?

Can anyone help?

Thanks in advance!

Regards
--
Raj Kothary :: one|concept
http://www.oneconcept.net
(e-mail address removed)
+ 44 (0)79 5647 2746

oneconcept limited :: 2nd Floor West, 3-4A Little Portland Street, London
W1A 5AG

Confidentiality notice:
The information transmitted in this email and/or any attached document(s) is
confidential and intended only for the person or entity to which it is
addressed and may contain privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon this
information by persons or entities other than the intended recipient is
prohibited. If you received this in error, please contact the sender and
delete the material from any computer.
 
J

J. Gleixner

Raj said:
Hi,

I was wondering if it is straightforward to allow someone to post an XML
file to a Perl-CGI script on a web server and storing that file on the web
server?
Yes

Can anyone help?

Documentation is the first stop.

perldoc CGI

Storing the data will require the correct permissions, but you'd send
XML just like you'd send any other string of data or file of data. If
you have an file, in XML, that you'd like to upload, look in the CGI
docs for "filefield".
 
N

nobull

Raj said:
I was wondering if it is straightforward to allow someone to post an XML
file to a Perl-CGI script on a web server and storing that file on the web
server?

Do you really mean a raw post post of an XML file (like a SOAP client
would), not post an HTML form response containing a file field
containing an XML file?

Anyhow the file type is irrelevant.

For HTML file fields use the CGI module.

For a raw file post do not use the CGI module, just use File::Copy
from \*STDIN.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top