Dear Monks,

I am currently writing a web application which has to function across 3 web servers, each of which will perform different functions.

There will be 1 Main NT server and then 2 Unix servers.

At present, if a function on one of the Unix servers is required I am just loading the page directly from the required server within either a Popup window or an IFrame.

This however causes problems interacting with the window because of the Javascript origin security policy.

I am now looking into using something like LWP or IO::Socket::INET to pull the output from the Unix servers back to the master one, so I will have no problems with the same origin policy and also the the applications security can be improved.

The Problem is that many of the scripts that I am running on the unix servers turn buffering off so that the status of the process can be displayed to the end user. Examples of these processes are a FTP Client that shows the progress of the Transfer.

Is there any way to call the script from the Unix servers within my main application using LWP or IO::Socket without having the output buffered so the status is still reported correctly?

Which is the best method to use if it is possible and are there any pointers that might help me?

Many Thanks in advance.

Alistair


In reply to Using LWP or IO::Socket::INET without Buffering by allyc

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.