WebBrowser control problem

  • Thread starter Thread starter Lothar Behrens
  • Start date Start date
L

Lothar Behrens

Hi,

I am using s WebBrowser control to automatically login to a website. I
have tested this functionality some tome ago, but for now it doesn't
work any more.

The control returns me to the failed login page compared to IE or
Firefox while using such a link:

https://www.address.de/[email protected]&login_password=AbC&kK%x

Note: The password is changed to any chars, but with the same % and &
encoded :-)

I have changed my password to be a simple one without % and &. Then it
works.

Is this a problem of WebBrowser control, or with the UrlEncode
function?

myEncode = ("https://www.address.de/login.php?login_name="
+ HttpUtility.UrlEncode(user) + "&login_password=" +
HttpUtility.UrlEncode(pass));
// ...
webBrowser1.Navigate(new Uri(myEncode));

Thanks,

Lothar
 
Back
Top