Hi,
Got a question for Perl fans out there...
I need to setup a script on my server that sends a POST to a CGI script on
another server (which I have no control over), receives the output of the
script from the other server, parses the output (somewhat like what Javilk
does with his SE analysis), then writes some html to the browser . The CGI
script on the other server must be called with POST, not GET. It seems like
the logic would be something like this:
1. send POST string to other server, with variables attached. So other
server would receive a POST like:
http://www.otherserver.com/cgi-bin/script?name=variable
2. read output of script from other server (which in this case is a text
file of database rows in a convenient format ready for me to parse)
3. parse the data
4. write some html
What I don't know how to do is steps 1 and 2. I'm not sure how to send the
POST string to the other server and I'm not sure how to read the output. As
far as reading the output, my guess is that it's just a <FILENAME> type
operation, once a handle for the output from the other server is
established, but I'm not sure how to send the POST string.
I've been poking around Perl books and keep coming back to discussions about
sockets, but that seems more complicated than would be neccessary. I'd try
using "open location..." but how can I cause it to be a POST?
I've done this in ColdFusion using the <CFHTTP...> tag, which makes it very
easy, but I'd really rather do it in Perl, because I'm going to be
processing a sizable chunk of text from the output of the remote script.
Any help would be appreciated.
TIA,
Jack
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------