🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1274

Re: IdHTTPServer Response timeing

#1274
From: Remy Lebeau (TeamB)
Date: Tue, 12 Apr 2005 17:12
28 lines
1960 bytes
<Ulli> wrote in message news:opso34q7nzgmwg2m@localhost...

> Means I don't want to give response directly in the
> IdHTTPServer1CommandGet function

You have to.  That is the only place where you can send a reply from.

> but for the ServeFile(AThread, AResponseInfo,  as_RespFile) I need
> the AThread and AResponseInfo (obviously) that I get in the
> IdHTTPServer1CommandGet function.

Yes.  Which is why you must send the reply from within
IdHTTPServer1CommandGet() only.  Also because the ARequestInfo and
AResponseInfo parameters are no longer valid objects as soon as
IdHTTPServer1CommandGet() exits, which is another reason why you cannot send
the reply after IdHTTPServer1CommandGet() exits.

> What I wanted to know is, do I have to store the AThread and
> AResponseInfo myself in a list to give the response when I get the
> trigger from the other program or is there an other way to give
> response not directly.

Why can't you make IdHTTPServer1CommandGet() simply wait for the page to be
made available before then sending it?


Gambit
Technical Details
Message-ID: <425c00ff$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <opso34q7nzgmwg2m@localhost>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,c7ad805fef18f519
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <opso34q7nzgmwg2m@localhost>
Subject: Re: IdHTTPServer Response timeing
Date: Tue, 12 Apr 2005 10:12:25 -0700
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <425c00ff$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1113325823 68.69.17.41 (12 Apr 2005 10:10:23 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail