473,396 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

CGI and C++: continual updates

Hi everyone

I'm programming CGI applications in C++. My latest prog has to request lots
of information from other servers which tend to be slow from time to time.

Apache waits until the whole CGI program has finished before it starts to
send the generated page to the browser.

In Perl it is possible to send data to the browser before the script has
completed. Does anyone know a way to do such things with c++ programs?
Simply flush cout doesn't help :(

During my search i came across the following page:
http://www.linuxjournal.com/article.php?sid=4386. This demonstrated way
doesn't seem to work on modern browsers, AFAIK this was never standard and
only implemented by older Netscape browsers.
Thanks for any help / links!
best regards

Flavio Tischhauser
Jul 22 '05 #1
3 1286
Flavio Tischhauser wrote:
Hi everyone

I'm programming CGI applications in C++. My latest prog has to request lots
of information from other servers which tend to be slow from time to time.

Apache waits until the whole CGI program has finished before it starts to
send the generated page to the browser.

In Perl it is possible to send data to the browser before the script has
completed. Does anyone know a way to do such things with c++ programs?
Simply flush cout doesn't help :(

During my search i came across the following page:
http://www.linuxjournal.com/article.php?sid=4386. This demonstrated way
doesn't seem to work on modern browsers, AFAIK this was never standard and
only implemented by older Netscape browsers.
Thanks for any help / links!


You'd probably get more help from an apache group. This question is off
topic in comp.lang.c++.

Two things you gound do:

a) do a manual http request (using telnet) and check to see if you're
actually not getting anything.

b) some html can't be rendered until it's all complete, so your browser
is getting the content, it is just is unable to display it.

Jul 22 '05 #2
Gianni Mariani <gi*******@mariani.ws> wrote in
news:bq********@dispatch.concentric.net:

You'd probably get more help from an apache group. This question is
off topic in comp.lang.c++.
Woops, sorry. On my way of learning CGI for C++ i got the most useful
answers from C++ boards and groups but my current problem really goes into
server specific problems.
Two things you gound do:

a) do a manual http request (using telnet) and check to see if you're
actually not getting anything.

b) some html can't be rendered until it's all complete, so your
browser is getting the content, it is just is unable to display it.


Thanks for your tips. I already tried that, my testprog only outputs simple
text which shouldn't be a problem.

Anyway, i'll try my luck in some Apache-Groups.

Have a nice weekend!
best regards

Flavio Tischhauser
Jul 22 '05 #3
Flavio Tischhauser wrote:
Hi everyone

I'm programming CGI applications in C++. My latest prog has to request lots
of information from other servers which tend to be slow from time to time.

Apache waits until the whole CGI program has finished before it starts to
send the generated page to the browser.

In Perl it is possible to send data to the browser before the script has
completed. Does anyone know a way to do such things with c++ programs?
You may try C++ CGI Toolkit from Softintegration, it is free and
runs across platform. However, this toolkit runs under C/C++ interpreter
Ch only. You can find more at

http://www.softintegration.com/products/toolkit/cgi/

Simply flush cout doesn't help :(

During my search i came across the following page:
http://www.linuxjournal.com/article.php?sid=4386. This demonstrated way
doesn't seem to work on modern browsers, AFAIK this was never standard and
only implemented by older Netscape browsers.
Thanks for any help / links!
best regards

Flavio Tischhauser


Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Steve Thorpe | last post by:
Hi I have have two linked SQL Servers and I am trying to get remote writes working correctly (fast). I have configured the DB link on both machines to: Point at each others DB. I have security...
3
by: Viswanatha Thalakola | last post by:
Hello, Can someone point me to getting the total number of inserts and updates on a table over a period of time? I just want to measure the insert and update activity on the tables. Thanks....
3
by: Vijay Balki | last post by:
This might be a dumb question to ask. Can someone answer me with patience.. When I have a typed or un-typed dataset, the only way I can update is like below? Dim con As New...
4
by: Jerome Cohen | last post by:
This problem is driving us mad, and I saw someone else posting a very similar problem, again no support from MS! ----------------------- Win2K/IIS 5.0, web farm load balanced by Local director....
0
by: Eric Paul | last post by:
I have been in search of a better way to handle bulk inserts and updates into SQL 2000 using c# and while I have found a few different ways to accomplish this I was wondering what is considered to...
2
by: Larry | last post by:
Hello I see that Windows Services are suppose to be able to run in their own background process. I can create simple Services based on the MSDN walkthrough, and get the OnStart/OnStop methods to...
23
abouddan
by: abouddan | last post by:
Hi all, I trying to the Automatic updates. After searching for the right updates a list of 32 high priority updates, when selecting "Download Updates and install", the process of downloading...
0
by: andrewschools | last post by:
Hi, I'm using ClickOnce for all of my installations and updates. However, when I modify any of the datasets in my application, when a user downloads the new update, all their data saved in their...
1
by: =?Utf-8?B?bmVpbG9scw==?= | last post by:
Everytime I reboot my computer I get a baloon pop up that says Automatic Updates is turned off. When I try to manualy update Windows I get the following message from Internet Explorer. Automatic...
0
by: raaman rai | last post by:
This is quite irratiting to find out that my system is enabled with automatic updates and it periodically updates my pc with the latest updates. But recently i encountered network problem once the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.