Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Unexpected Output

by tjh (Curate)
on Jul 13, 2002 at 16:14 UTC ( [id://181495]=note: print w/replies, xml ) Need Help??


in reply to Unexpected Output

So, it's probably a stupid question... but,

browser -> script1.cgi -> progress.cgi and back right? Or did I read that wrong?

script1 will wait for progress.cgi to complete before responding back to the browser? Is script1 set to $|=1 so it passes each response to the browser unbuffered also? And is it looping and printing rec'd progress.cgi output each time it receives it? Might be easiest to redesign to do it directly from the script called by the browser (modularize it?).

0.02

Replies are listed 'Best First'.
Re: Re: Unexpected Output
by braveluxan (Initiate) on Jul 15, 2002 at 14:48 UTC
    Clarification:

    If i type in "progress.cgi" directly into the browser (so it is called directly) then it runs as expected printing a "." every second for 10 seconds.

    =BUT=

    If i call progress.cgi from ANOTHER script via either POST or GET, then there is a 10 second pause and a sting of 10 periods is printed all at once: ".........." instead of 1 at a time.

    - Both scripts have $|=1 enabled (disabled?) :)
    - Same behaviour for both GET and POST methods
    - Same behaviour in both IE and Mozilla
    - I get the correct behavior if i call the script directly from a browser
    - I get the correct behavior if i telnet to the web server and do a manual GET

    TIA.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://181495]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-23 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found