Click here to get back home

Client-Server Communication in Perl CGI

 HomeNewsGroups | Search
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Client-Server Communication in Perl CGI sri 11-14-2008
Posted by sri on November 14, 2008, 7:57 am
Please log in for more thread options
Hi Friends,

I have a requirement like this,

My client program is a browser, and the server may be run in perl, ror
or any other server side scripting. The browser has to send the
request to the server once, after that the server has to keep track of
the client and send the response frequently to the client.

One way we can achieve this with Applets. Is there any other way to
achieve this ??

Regards,
Sri Seethalakshmi.B

Posted by Jim Gibson on November 14, 2008, 1:09 pm
Please log in for more thread options
In article

> Hi Friends,
>
> I have a requirement like this,
>
> My client program is a browser, and the server may be run in perl, ror
> or any other server side scripting. The browser has to send the
> request to the server once, after that the server has to keep track of
> the client and send the response frequently to the client.
>
> One way we can achieve this with Applets. Is there any other way to
> achieve this ??

Sounds like 'AJAX' to me. I am only familiar with the concept, not the
methods, so I can't say for sure. See
<http://en.wikipedia.org/wiki/Ajax_(programming)> for more info.

For vanilla HTTP, the choice is "server push" and "client pull". See,
for example <http://oreilly.com/openbook/cgi/ch06_06.html>.

For an example of client pull, see
<http://www.stonehenge.com/merlyn/LinuxMag/col39.html>

--
Jim Gibson

Posted by Peter J. Holzer on November 15, 2008, 1:43 pm
Please log in for more thread options
> In article
>> My client program is a browser, and the server may be run in perl, ror
>> or any other server side scripting. The browser has to send the
>> request to the server once, after that the server has to keep track of
>> the client and send the response frequently to the client.
>>
>> One way we can achieve this with Applets. Is there any other way to
>> achieve this ??
>
> Sounds like 'AJAX' to me.

Nope. AJAX doesn't magically allow the server to send something to the
browser without a request. Instead some JavaScript running in the
browser sends requests to the browser. So, for in the terminology you
use below, it is some kind of "client pull".


> I am only familiar with the concept, not the
> methods, so I can't say for sure. See
><http://en.wikipedia.org/wiki/Ajax_(programming)> for more info.
>
> For vanilla HTTP, the choice is "server push" and "client pull". See,
> for example <http://oreilly.com/openbook/cgi/ch06_06.html>.
>
> For an example of client pull, see
><http://www.stonehenge.com/merlyn/LinuxMag/col39.html>
>

Similar ThreadsPosted
Perl and C communication January 12, 2008, 12:24 pm
Communication between Cgi and another perl application December 13, 2004, 2:14 pm
googletalk communication with perl September 16, 2005, 8:34 pm
Bidirectional communication between Perl and C January 6, 2006, 2:36 am
Serail Port communication using PERL May 4, 2006, 2:59 am
Perl parent-child communication. April 24, 2007, 4:42 am
VB6 and Perl on 2000/XP: Req recommendation for interprocess communication June 4, 2005, 9:24 am
Inter Program Communication ... October 26, 2004, 5:42 pm
Fast pipe communication February 3, 2006, 4:17 pm
Distributed multitasking, POE, communication October 7, 2006, 6:24 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap