CGI and C++: continual updates

Discussion in 'C++' started by Flavio Tischhauser, Dec 5, 2003.

  1. 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
     
    Flavio Tischhauser, Dec 5, 2003
    #1
    1. Advertising

  2. [OT] Re: CGI and C++: continual updates

    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.
     
    Gianni Mariani, Dec 5, 2003
    #2
    1. Advertising

  3. Re: [OT] Re: CGI and C++: continual updates

    Gianni Mariani <> wrote in
    news:bqq5ju$:


    > 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
     
    Flavio Tischhauser, Dec 5, 2003
    #3
  4. Flavio Tischhauser

    Guest

    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
     
    , Dec 6, 2003
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jürgen Exner

    Re: CGI Perl "use CGI" statement fail

    Jürgen Exner, Jul 31, 2003, in forum: Perl
    Replies:
    0
    Views:
    1,431
    Jürgen Exner
    Jul 31, 2003
  2. Shailan
    Replies:
    2
    Views:
    1,032
    Shailan
    Dec 15, 2003
  3. =?Utf-8?B?TGFycnk=?=

    Continual Process in a Windows Service

    =?Utf-8?B?TGFycnk=?=, Feb 13, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    441
    bruce barker
    Feb 13, 2004
  4. Thomas Hawtin

    HTA starting continual applet

    Thomas Hawtin, Sep 24, 2006, in forum: Java
    Replies:
    1
    Views:
    629
    wilfried.pz
    Sep 24, 2006
  5. zippy

    cgi and cgi-bin

    zippy, Feb 1, 2005, in forum: Perl Misc
    Replies:
    5
    Views:
    355
    Sam Holden
    Feb 2, 2005
Loading...

Share This Page