Hello all,

I am trying to determine if the folloing is possible

I have written a client server program using IO::Socket. Basically I've embedded the client into a web page which talks to the server and returns results. Here is what I am trying to accomplish. The web client talks to the server and requests a file that resides on the server(not the web server, but the server that client embedded in the browser is talking to).How can I stream the data from the server to the users web browser? I know I can send the file from the server to the web server and than have the user download the file, but I am trying to avoid the middleman (the web server). Is there anyway to stream data from a remote machine to a users web browser? If you need me to elaborate please let me know.

Thank you for your time.

In reply to Download File From Remote machine to browser by kernelzack

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.