Re: how to set/get cookie for a raw iocp http server?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Chau Johnthan (chaujohnthan_at_hotmail.com)
Date: 08/26/04


Date: Fri, 27 Aug 2004 00:38:25 +0800

yeah!:-)))))))))))))))

so that's say, after I use set-cookie response the client,
ie will cache it, the next time the user come up, ie will
wrap it out in its cookie header.

if the user has configured some preference, I need to
wrap new value in the set-cookie.

"Igor Tandetnik" <itandetnik@mvps.org> wrote in message
news:#gxv6j4iEHA.536@TK2MSFTNGP11.phx.gbl...
> "Chau Johnthan" <chaujohnthan@hotmail.com> wrote in message
> news:OFqLTd4iEHA.3632@TK2MSFTNGP09.phx.gbl
> > I am using iocp to create a http server. and I want to
> > set/get cookie in the header. how should I do that?
> >
> > I can get out computer name, ip addr of the peer after
> > AcceptEx.
>
> Cookies are HTTP protocol level entities, they have nothing to do with
> TCP/IP. You set a cookie by sending a well formed Set-Cookie: header in
> your HTTP response. You get a cookie when the client includes Cookie:
> header in its HTTP request.
> --
> With best wishes,
> Igor Tandetnik
>
> "For every complex problem, there is a solution that is simple, neat,
> and wrong." H.L. Mencken
>
>



Relevant Pages

  • Re: Simulating Multi-Threading and persisting Connection
    ... The situation is that I'm using HTTP requests to simulate threads on ... The issue is that I'm hoping to use cookie to intercommunicate over ... so any kind of cookie modification wouldn't be at user client. ... request/response protocol; the client makes a request to the server, ...
    (comp.lang.php)
  • Re: Session_OnEnd doesnt get called when shutting down a browser
    ... i think what aaron was getting at was the stateless nature of http. ... client attemts to login, i write a special cookie to their browser, giving ... the cookie a unique name and packing it into the application array. ...
    (microsoft.public.inetserver.asp.general)
  • Re: cookielib
    ... I have HTTP client which accepts cookies. ... If client allready has cookie, ... header everything is fine, but if I reload request, ...
    (comp.lang.python)
  • Re: cookie problem.
    ... I have a C++ client, communicating with a perl script over http. ... I send a cookie from the script to the client, ...
    (comp.lang.perl.misc)
  • Re: cookie problem.
    ... I have a C++ client, communicating with a perl script over http. ... sending the cookie back to the script causes the script to crash. ... If you enable lynx's "trace" mode, it outputs into its trace file a verbatim copy of the HTTP request it sends. ...
    (comp.lang.perl.misc)