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

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: 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. ... 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)
  • 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)
  • [UNIX] Alteon ACEdirector Signature/Security Bug
    ... A new security bug has been discovered in the Nortel Alteon ACEdirector ... HTTP clients could exploit it to determine the IP addresses of ostensibly ... "hidden" web servers that are load-balanced by the ACEdirector. ... uses it to persistently map a series of HTTP client requests to the same ...
    (Securiteam)

Quantcast