[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] new to perl



Raz,

In reply to:

>I need help to understand how a perl cgi script on one server can
>communicate (send data and receive data) from another server. I need this to
>create a solution that will provide real time shipping information from UPS
>servers.

In this regard, a CGI is no different than any other Perl script. 
(The only *practical* difference is that CGI's need to respond fairly 
promptly or the Web server that invoked them will time out, so if the 
UPS site is slow you can get into trouble.  You can usually increase 
the timeout interval on your Web server to help alleviate this.)

When I have had to contact Web servers from Perl, I've used sockets, 
but that's because I am old fashioned and because it's been a while 
since I have done this in Perl.  It is my understanding that LWP is 
currently the "proper" way of doing this; you might start by looking 
at the docs for LWP::Simple.  If there's a better way, I'm sure folks 
on this list will let us know :-)

-David-
David Steffen, Ph.D.
President, Biomedical Computing, Inc. <http://www.biomedcomp.com/>
Phone: (713) 610-9770 FAX: (713) 610-9769 E-mail: steffen@biomedcomp.com

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org