Re: Internet class differences...
- From: Joerg Jooss <news-reply@xxxxxxxxxxxxx>
- Date: Mon, 27 Mar 2006 20:45:21 +0000 (UTC)
Thus wrote Peter,
I've tried this on another group without any resolution, so let me see[...]
if anyone here has an answer - please! ;-)
I have used an ethernet sniffer to inspect the packets from the
WebClient (which works completely with simple queries) and the
HTTPWebRequest (which submits the query successfully but seems unable
to submit the cookie and sequence number properly to retrieve the
results). The only difference I can see in the packets is that the
WebCLient orders the header values slightly differently (the same
values are present but their order is different from the
HTTPWebRequest ordering of the same values) and the WebClient returns
not just the cookie name-value combination, but also the 'Path=/'
parameter from the internal cookie. The HTTPWebRequest has the Path
member set properly (to '/') but does not return this with the cookie
to the redirected server page - only the name-value members are sent.
I don't know if the order or the lack of a 'Path=/' in the
header/cookie causes the failure, but something is doing it and I
can't figure out how to change the behavior...
I'm tearing my hair out on this and looking for any help/ideas.
Thanks a lot for anything to follow up on! 8-)
Cookie processing in HttpWebRequest requires a single CookieContainer to be associated with each request in your HTTP "conversation". I guess you're missing one ;-)
Cheers,
--
Joerg Jooss
news-reply@xxxxxxxxxxxxx
.
- Follow-Ups:
- Re: Internet class differences...
- From: Peter Hayes
- Re: Internet class differences...
- References:
- Internet class differences...
- From: Peter Hayes
- Internet class differences...
- Prev by Date: Windows Service Best Practices
- Next by Date: Re: execute gpg commands in dotnet?
- Previous by thread: Re: Internet class differences...
- Next by thread: Re: Internet class differences...
- Index(es):
Relevant Pages
|