My guess is that you're not exactly duplicating that header. There could be many things that the server does to discriminate. Maybe it's checking the browser string or a referring Url. Or maybe there's a Cookie that was set earlier that's getting passed through?
+++ Rick ---
>All,
>
>Assume you have just deleted all cookies on a machine and then opened a new browser. In the address bar you type an https url with a short query string after it and thereby successfully log into a server. You happen to have a tool that shows the details of that successful request.
>
>Then you try to duplicate that successful login with the httpwebrequest class by duplicating the request in detail. Same header, same cookies, same body or content, but the server keeps giving you the login page instead of the login success page.
>
>Anyone had this happen to them before?
>Any ideas welcome!
>Thanks,