🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Handle cookies using IdHTTPServer

#241
From: Dmitri L.
Date: Tue, 24 Jun 2008 06:54
16 lines
1421 bytes
I'm using C++ Builder 2007 and Indy's IdHTTPServer (v10). I'd like to handle 
cookies, where do I have to start?

I'm using IdHTTPServer for executing PHP 5 scripts on a local pc. I'd like 
to support cookies when created by a script. How do I catch a cookie?

I tried to count the Cookies in the OnCommandGet-event 
(ARequestInfo.Cookies.Count), without any result. The cookie list seems to 
be empty.

Could somebody please give me some advise where to start? Thanks in advance 
for your help.

Regards,

Dmitri L.
Technical Details
Message-ID: <48609a04@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,935066f071ae9379,start
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Dmitri L." <nospam@nodomain.no>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Handle cookies using IdHTTPServer
Date: Tue, 24 Jun 2008 08:54:05 +0200
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 82.170.225.71
Message-ID: <48609a04@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1214290436 82.170.225.71 (23 Jun 2008 23:53:56 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail