tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: CGIs
@ 2001-05-17 20:39 Don Newcomer
  0 siblings, 0 replies; only message in thread
From: Don Newcomer @ 2001-05-17 20:39 UTC (permalink / raw)
  To: tru64-unix-managers

Thanks to the folks who sent their input.  The problem turned out to be
because of caching by the local browser.  The parameters I was sending
to the CGI were the same from one time to the next and the browser was
returning the output HTML from cache instead of running the CGI.  It was
simply matter of sending a date along as an additional unused parameter
that forced the browser to run the CGI each time since each URL is now
unique.  *sigh*

================================================================================
Don Newcomer                                            Dickinson College
Associate Director, System and Network Services		P.O. Box 1773
newcomer@dickinson.edu                                  Carlisle, PA  17013
                                                        Phone: (717) 245-1256
                                                          FAX: (717) 245-1690


On Thu, 17 May 2001, Don Newcomer wrote:

> This isn't necessarily Tru64-specific but I'm using Netscape Enterprise
> Server and running CGIs written in C.  In particular, one CGI does a file
> deletion and then generates HTML code on the fly.  If I run the CGI
> interactively, it works as it should.  On the web, however, it acts as if
> the operations are occurring asynchronously.  Sometimes the file is deleted
> and the correct form is displayed.  Sometimes it doesn't delete the file.
> My guess is that, somehow, the HTML is generated and executed by the web
> server before the original CGI completes.  Can anyone confirm or refute
> this?  And, better yet, can you suggest a workaround?  A sleep()
> statement would be a possibility but it's only a band-aid at this point.
> Thanks.
>
> ================================================================================
> Don Newcomer                                            Dickinson College
> Associate Director, System and Network Services		P.O. Box 1773
> newcomer@dickinson.edu                                  Carlisle, PA  17013
>                                                         Phone: (717) 245-1256
>                                                           FAX: (717) 245-1690
>
>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-17 20:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-17 20:39 SUMMARY: CGIs Don Newcomer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox