Re: Set Cookie before I POST to server?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

anonymous_at_discussions.microsoft.com
Date: 03/12/04


Date: Fri, 12 Mar 2004 11:41:38 -0800

I've tried using a string "Cookie: value" and placing it
into the header in the Navigate method. Doesn't
work...unless I'm doing something wrong. I'll look into
the InternetSetCookie. Thanks!
>-----Original Message-----
>"Nathan" <anonymous@discussions.microsoft.com> wrote in
message
>news:290F1FD8-BD0A-4AFD-B7B7-0F0E2A0EE3C9@microsoft.com...
>> Is there any way I can set the cookie value in the HTTP
header using
>either IE or webbrowser control (VB 6) before navigation?
>
>You can plant a cookie at any time with InternetSetCookie
[Ex]. You can
>also try passing a well-formed Cookie: header as a
parameter to
>Navigate. I haven't tried it, not sure it will work.
>--
>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: Set Cookie before I POST to server?
    ... The correct syntax of Cookie: header is described in RFC2109: ... "For every complex problem, there is a solution that is simple, neat, ... >>You can plant a cookie at any time with InternetSetCookie ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: how do you set a cookie for axshdocvw
    ... I tried to put the cookie string in the header parameter of navigate. ... The tcptrace tool shows that the cookie part of the header is being ... > sqlAuthCookie to the WebBrowser control. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: how do you set a cookie for axshdocvw
    ... "Teo Lachev" wrote in message ... > WebBrowser control. ... >> I tried to put the cookie string in the header parameter of navigate. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: CSS switcher in Ruby?
    ... The trick is to not change the URL for each style, rather change something else like a cookie or a session variable. ... I'm going to assume that you have figured out some way to set the cookie and have the css load itself. ... When you get a request to dynamic_css.rb and your STYLE cookie is set to to Style1, ... and include the ETag header of the CSS you want to be used. ...
    (comp.lang.ruby)
  • Re: CGI, Cookie & Header
    ... Wenn ich dann an einer Stelle im Script einen Cookie ... darf aber ja noch kein Header aktiv sein. ... vor dem Erzeugen des Cookies mit ... der erste Header ist immer aktiv und das Cookie mir nur im Browser angezeigt und nicht ...
    (de.comp.lang.perl.cgi)