Thread View: borland.public.cppbuilder.internet.socket
2 messages
2 total messages
Started by Dmitri L.
Tue, 24 Jun 2008 06:54
Handle cookies using IdHTTPServer
Author: Dmitri L.
Date: Tue, 24 Jun 2008 06:54
Date: Tue, 24 Jun 2008 06:54
16 lines
1421 bytes
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.
Re: Handle cookies using IdHTTPServer
Author: Remy Lebeau (TeamB)
Date: Tue, 24 Jun 2008 08:37
Date: Tue, 24 Jun 2008 08:37
19 lines
1652 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads