Hello TJ,
Alas, if a cookie is in the container... send it back.
Cookies that don't go back are cookies that arrive expired. I've heard of
some interesting uses of expired cookies, especially from spyware.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Tom Jones" <to********@hotmail.com> wrote in message
news:uG**************@TK2MSFTNGP10.phx.gbl...
Hi Nick,
[I also work at MS btw... ;-), Whidbey]
It looks like the main issue was that I was not allocating a new instance
of the CookieContainer and associating it with the *request*. As soon as I
did that, my responses had the expected cookie objects.
How do I determine if a cookie should be sent back or not?
Thanks,
-tj (not my real name)
"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> wrote in message
news:BFcCd.321942$HA.82793@attbi_s01... Can you post the Set-Cookie contents and the URL where the original
request
is being made. The reason may be obvious once you look at the cookies
themselves. (Not every cookie should be sent back).
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Tom Jones" <to********@hotmail.com> wrote in message
news:eg**************@tk2msftngp13.phx.gbl... Hi,
I place an http request to a web server using HttpWebRequest. When the
response comes back (via a HttpWebResponse) the Cookies collection in
the response is empty, though if I scan through the response's Headers
collection I see that there *are* a number of "Set-Cookie" headers
present.
Later on in the process I make another request (not to the same Uri
though) and the response DOES get its Cookies collection populated correctly.
Anyone have any idea what might be going on here?
Thanks,
tj