Re: WebBrowser



So I tried both your methods & neither worked. On top of that neither is a
very good option because I would need to pass clear text passwords & userID's
throught the string in the addy bar. Would you happen to know if there is a
way to pass parameters to a webpage without the address bar being in clear
text?

Steve.

"Veign" wrote:

> Sure it still matters:
>
> With a Windows Authentication or Permission on a folder (Linux type I think)
> security type a standard Windows type dialog box opens when accessing the
> protected page. With this type of security you may be able to access the
> protect page with a URL like:
> http://MyUserName:MyPassWord@xxxxxxxxxxxxxxxxxx
>
> If the login page is a Username / Password textbox with a Submit or Login
> button you could send the information directly to the web server without
> going through the textboxes / button. It maybe as simple as a URL like:
> http://www.TheWebsite.com/login.asp?user=MyUserName&pass=MyPassWord
>
> Basically it doesn't matter if its your server or not. All a browser does is
> send requests to a web server and get some type of response / data back.
> You just need to figure out the request the server expects for a login and
> duplicate it.
>
>
> --
> Chris Hanscom - Microsoft MVP (VB)
> Veign's Resource Center
> http://www.veign.com/vrc_main.asp
> --
> Read. Decide. Sign the petition to Microsoft.
> http://classicvb.org/petition/
>
>
> "Steve" <Steve@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:14B144A7-3D0C-46B2-A1B4-914CE50511ED@xxxxxxxxxxxxxxxx
> > ok.... there must be some mis communication..... I am accessing sites that
> > are not mine... vendor sites for example... I don't want to use sendkeys
> > that's why i said something like 'sendkeys'.... So if it's a vendors site
> > security authentication won't matter at all because I don't control the
> > server & have no idea what type of security they are using.... I need our
> > employees to log into sites ( that i have no idea what type of
> authentication
> > they have) but i don't want our employees to know the passwords/usernames,
> > etc.... so i need to automate the process of loggin into many different
> > vendor sites... so i need to find the controls on the form & fill them
> with
> > data from a database.
> >
> >
> > "Veign" wrote:
> >
> > > But in a Web page using send keys is not the proper way to interact with
> the
> > > page. In the case of a login page you can easily interact directly with
> the
> > > web server through the web browser to login - this is why the type of
> > > authentication matters...
> > >
> > > --
> > > Chris Hanscom - Microsoft MVP (VB)
> > > Veign's Resource Center
> > > http://www.veign.com/vrc_main.asp
> > > --
> > > Read. Decide. Sign the petition to Microsoft.
> > > http://classicvb.org/petition/
> > >
> > >
> > > "Steve" <Steve@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > > news:73A85AB6-26AC-49CE-9588-2B3B2E15B6E0@xxxxxxxxxxxxxxxx
> > > > The login doesn't matter...i just want to send data like a sendkeys to
> the
> > > > page.....so it doesn't matter what type of login it is.
> > > >
> > > > "Veign" wrote:
> > > >
> > > > > Neither?
> > > > >
> > > > > --
> > > > > Chris Hanscom - Microsoft MVP (VB)
> > > > > Veign's Resource Center
> > > > > http://www.veign.com/vrc_main.asp
> > > > > --
> > > > > Read. Decide. Sign the petition to Microsoft.
> > > > > http://classicvb.org/petition/
> > > > >
> > > > >
> > > > > "Steve" <Steve@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > > > > news:3CE51FAC-DE6F-49A6-AAF0-6A726E908FEB@xxxxxxxxxxxxxxxx
> > > > > > Neither...they are other sites that our employees need to log
> into.
> > > We
> > > > > just
> > > > > > don't want to give our employees all the usernames & passwords....
> > > without
> > > > > > going into to much info... I really just need to fill out a
> > > form...i'll
> > > > > try &
> > > > > > post in .net but because the WebControl is a COM object i thought
> i
> > > would
> > > > > > have some success here.
> > > > > >
> > > > > > "Veign" wrote:
> > > > > >
> > > > > > > Also, what type of authentication are we talking about; Windows
> > > > > > > Authentication or just a simple login form?
> > > > > > >
> > > > > > > --
> > > > > > > Chris Hanscom - Microsoft MVP (VB)
> > > > > > > Veign's Resource Center
> > > > > > > http://www.veign.com/vrc_main.asp
> > > > > > > --
> > > > > > > Read. Decide. Sign the petition to Microsoft.
> > > > > > > http://classicvb.org/petition/
> > > > > > >
> > > > > > >
> > > > > > > "Steve" <Steve@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > > > > > > news:675F0EA7-4397-450C-AF76-6C94D3E04267@xxxxxxxxxxxxxxxx
> > > > > > > > I would like to use a WebBrowser Control in a Windows Form &
> pass
> > > > > > > information
> > > > > > > > to the loaded pages... ie user name & password type
> information...
> > > is
> > > > > this
> > > > > > > > possible? I know how to load the web page...but I'm not sure
> how
> > > to
> > > > > pass
> > > > > > > > values to the fields within the loaded web page.
> > > > > > > >
> > > > > > > > Steve.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
>
>
>
.