Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 2
    There is no specification when a browser should display the received (partial) data. A browser may use a buffer for reading the data and may display the data when the buffer is full or when the end of the data is detected. You should look how time or status display is dynamically displayed on HTML pages. Commented Jan 24, 2022 at 13:18
  • @Bodo Thanks! You are probably right. As an hacky workaround, adding print " " x 1024; before the for loop in my CGI script seen in the initial post seems to fill the browsers cache and numbers from 1 to 10 are printed with 1s interval exactly like in case of curl. Commented Jan 24, 2022 at 14:31