Re: How to get intermediate status and cookie when using WinInet

Tech-Archive recommends: Fix windows errors by optimizing your registry



"woodey" <woodyqian@xxxxxxxxx> wrote in message
news:a87d2fec-687f-44a8-bf8b-9faaa4c9f445@xxxxxxxxxxxxxxxxxxxxxxxxxxx
When using WinInet,I send a request and server response with "100-
continue" and then continue to send me the actual response. i want to
get the cookie come with the response "100-continue",how to do
it ,thanks

As with any other header, you get it with HttpQueryInfo. In this case,
you want HTTP_QUERY_SET_COOKIE option.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • RE: "Divide and Conquer" - cross site response header tampering, cookie manipulation, and
    ... The attack I described, HTTP ... Response Splitting, ... cookie from their own web server while redirecting to another site. ... so the victim cannot maintain their session) or could be used ...
    (Bugtraq)
  • Re: How to fetch Cookie from response
    ... by passing user & password. ... I'm having problem with fetching cookies from the response & ... Some how its not giving me complete cookie & hence I'm getting ... puts "1st Code = #" ...
    (comp.lang.ruby)
  • Re: LWP user agent query
    ... Whatever a client agent would do in ... there's no reason to suppose clients would perform the same fix as ... response is returned, and try to fix this up yourself, if MSIE has ... have cookie handling enabled, too, of course. ...
    (comp.lang.perl.misc)
  • Re: Debugging ScreenScrape Code
    ... You are creating cookie container, which creates an empty cookie container. ... You are assigning it to each web request. ... response, you aren't saving the cookies into the cookie container. ... > private string LOGIN_URL; ...
    (microsoft.public.dotnet.languages.csharp)
  • session variable and asynchrous call
    ... retrieves some user information it uses from a webservice. ... to update the cookie values. ... until after the response has been streamed to the client, ... in Session variables using the state object. ...
    (microsoft.public.dotnet.framework)