This is a discussion on apache and html parts within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello. My name is Wolfgang. I have the following problem. Maybe somebody can help me. I work with an apache ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello.
My name is Wolfgang. I have the following problem. Maybe somebody can help me. I work with an apache web server (2.0.49) that is calling my cgi program. My cgi program produces an html table with 30 lines. The program is written in cobol and uses the command "exec html" to send the data to STDOUT. The positive thing with "exec html" is that you can separate html content from cobol program code. At first I send the top part of the html page (table title and so on) with "exec html" to STDOUT. After this there is a loop where I read the records of a file. Each record of the file will be sent out as one HTML line with "exec html" to STDOUT. At the end I send the bottom of the html page to STDOUT. The problem I have is that the apache web server DOES NOT collect my data that I send to STDOUT, DOES NOT wait until the end of my program and send one big html page over the internet to the client. The web server transfers each little html line separated to the browser and this is a very big performance problem. I can solve this problem by changing the structure of my program. I collect the parts of the html page in my cobol program and at the end I send one big html content to STDOUT. BUT that has the effect that the separation of html content and program code and the clearity of the code gets lost. So I ask: Is there a way to say to the apache web server: Collect all lines which are sent to you over STDOUT. At the end of the program send one big page to the browser. Thanks very much in advance Wolfgang |
| Thread Tools | |
| Display Modes | |
|
|