Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Httpwebrequest can't catch iebrowser
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00770537
Message ID:
00770985
Views:
13
>Rick,
>
>I thought you'd be interested to know that with wwipstuff.dll I have no trouble controlling Verizon's server.
>
>No way though with httpWebRequest class. Could be beacause you are wrapping wininet.dll the basis for the ie browser, huh?
>
>There might have to be some unmanaged code in my next app looks like <s>

Have you tried using the wwHttp .Net class from http://www.west-wind.com/articles.asp ?

Maybe you're not doing the cookies right. Are you using the Cookie collections? It's not that trivial to get these right and properly handle cookies reliably.

You might also want to check out an HTTP sniffer to see what really goes over the wire and not just what you capture with IE...

Try the EffeTech HTTP Sniffer (search on the Web for it), which has gotten me out of a bind more than a few times trying to debug HTTP traffic issues.

+++ Rick ---





>
>>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,
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform