Thanks Bob,
I looked at LWP and it looks great. I will keep it in mind for other applications.
I should have been more clear about what I meant by "simple." I have 100+ clients that need to run this script, and I cannot install any kind of significant Perl modules on them.
I found a file called geturl11.pl (http://www.jmarshall.com/easy/http/geturl11.pl.txt) that is pretty much self contained (it uses Socket, but that's already installed). "geturl11.pl" opens a socket, builds the HTTP request, parses the reply and saves the data to a file. All I had to do is add "Content-length:" and the contents of my "request.xml" file to GET.
Thanks,
Dan Timis Muse Research, Inc.
On Friday, July 30, 2004, at 05:26 AM, Bob Showalter wrote:
Dan Timis wrote:Hi everyone,
I am very new to Perl. I need two perl scripts, one would run on a client, the other would run on a server. ... I think I can also handle most of the client side. What I don't know how to do is open a two way connection with the server. Do I do something like this:
open CONNECTION "http://www.myserver.com/cgi-bin/generate-reply"
Where can I find some example code?
Use the LWP family of modules for this. It's designed for creating HTTP clients (and servers, for that matter).
http://search.cpan.org/~gaas/libwww-perl-5.800/
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>