Article View: borland.public.cppbuilder.internet.socket
Article #3155Re: Using cookies on an HTTP Server
From: Remy Lebeau (TeamB)
Date: Wed, 09 Nov 2005 03:54
Date: Wed, 09 Nov 2005 03:54
22 lines
1817 bytes
1817 bytes
"noel" <noel@teledata.qc.ca> wrote in message news:43714f4e$1@newsgroups.borland.com... > Could someone briefly explain how can i set cookies on > a HTTP client (browser) from the command handler of > my HTTP server (using TIdHTTPServer) The TIdHTTPResponseInfo object that is passed as a parameter to the OnCommandGet event haandler has a Cookies property. > I see the TIdNetscapeCookie and TidCookieRFC2109 component ... > but just don't really understand how to use it ... Did you read the documentation yet? Did you start with the TIdHTTPResponseInfo.Cookies property first instead of the individual components? The Cookies property is a collection. It has an Add() method which returns a TIdServerCookie object. You can then set that object's properties as desired. Gambit
Technical Details
Message-ID:
<437176ba$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43714f4e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,97e3b6f88f8f41c4 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <43714f4e$1@newsgroups.borland.com> Subject: Re: Using cookies on an HTTP Server Date: Tue, 8 Nov 2005 19:54:00 -0800 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 66.114.246.244 Message-ID: <437176ba$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1131509434 66.114.246.244 (8 Nov 2005 20:10:34 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail