Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: TIdHttpServer - Timeouts and File Upload Limit

www.cryer.info
Managed Newsgroup Archive

Re: TIdHttpServer - Timeouts and File Upload Limit

Subject:Re: TIdHttpServer - Timeouts and File Upload Limit
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Tue, 30 May 2006 13:33:39

"Joe Aley" <joealey2003@yahoo.com> wrote in message
news:447c8c5c$1@newsgroups.borland.com...

> There is a way to limit the time that TIdHttpServer.OnCommandGet()
> event can have to execute?

No.

> if an error happens, i will not be able to call exit.

Yes, you will.  Why do you think that you wouldn't be able to?

> My TIdHttpServer.OnCommandGet() function receives a file
> from the user. There is a way to limit the upload file size?

Which version of Indy are you using?

If Indy 9, then no.

If Indy 10, then you can use the OnHeadersAvailable event.  If the headers
include a 'Content-Length' value that is too large, you can set the event
handler's VContinue parameter to False.  You can then use the
OnHeadersBlocked event to specify the reason why the transfer is being
denied.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive