🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Handle cookies using IdHTTPServer

#243
From: Remy Lebeau (TeamB)
Date: Tue, 24 Jun 2008 08:37
19 lines
1652 bytes
"Dmitri L." <nospam@nodomain.no> wrote in message 
news:48609a04@newsgroups.borland.com...

> I'm using C++ Builder 2007 and Indy's IdHTTPServer (v10).
> I'd like to handle cookies, where do I have to start?

TIdHTTPRequestInfo and TIdHTTPResponseInfo both have Cookies properties.  In 
the OnCommandGet event, read from ARequestInfo.Cookies, and write to 
AResponseInfo.Cookies, as needed.

> I tried to count the Cookies in the OnCommandGet-event 
> (ARequestInfo.Cookies.Count), without any result.

Then the client is not sending any cookies to begin with.  Probably because 
your server hasn't issued any cookies to the client yet to send back to you.


Gambit 
Technical Details
Message-ID: <4860b21f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <48609a04@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,935066f071ae9379
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <48609a04@newsgroups.borland.com>
Subject: Re: Handle cookies using IdHTTPServer
Date: Tue, 24 Jun 2008 01:37:43 -0700
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 76.94.74.164
Message-ID: <4860b21f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1214296607 76.94.74.164 (24 Jun 2008 01:36:47 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail