🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #5354

Re: IdHTTPServer

#5354
From: Fabi�n
Date: Thu, 19 Aug 2004 14:10
44 lines
2198 bytes
TForm1 *Form1;
//--------------------------------------------------------------------------
-
__fastcall TForm1::TForm1(TComponent* Owner)
    : TForm(Owner)
{
}
//--------------------------------------------------------------------------
-

void __fastcall TForm1::IdHTTPServer1CommandGet(TIdPeerThread *AThread,
      TIdHTTPRequestInfo *RequestInfo, TIdHTTPResponseInfo *ResponseInfo)
{
    ResponseInfo->ContentText = "Hi";

    IdHTTPServer1->CreateSession(ResponseInfo, RequestInfo);
}
//--------------------------------------------------------------------------
-
void __fastcall TForm1::FormActivate(TObject *Sender)
{
    IdHTTPServer1->SessionState = true;
    IdHTTPServer1->Active = true;
}
//--------------------------------------------------------------------------
-


"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> escribi� en el
mensaje news:41225135$1@newsgroups.borland.com...
>
> "Fabi�n" <fabianfierro@hotmail.com> wrote in message
> news:41224dce$1@newsgroups.borland.com...
>
> > Do you kno how to work with sessions. When i change
> > the property SessionState to true, the applications trows
> > an error "Tread Error: Controlador no v�lido (6)"
>
> Please show your actual code.
>
>
> Gambit
>
>
Technical Details
Message-ID: <4124b504@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41224dce$1@newsgroups.borland.com> <41225135$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9ade020acb62f83a
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII
Reply-To: "Fabi�n" <fabianfierro@hotmail.com>
From: "Fabi�n" <fabianfierro@hotmail.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41224dce$1@newsgroups.borland.com> <41225135$1@newsgroups.borland.com>
Subject: Re: IdHTTPServer
Date: Thu, 19 Aug 2004 11:10:46 -0300
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 200.68.64.9
Message-ID: <4124b504@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1092924676 200.68.64.9 (19 Aug 2004 07:11:16 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail