WebBrowser control problem


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
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top