"Brian Henry" <br**********@newsgroups.nospam> schrieb:
Is there a way I could enter a username and password in a windows form
then take that and cause it to open a website up in IE and "post" the
information to a site so i can cause that site to log in useing this
information?
Below there is a sample on how to do that with a 'WebRequest' object. I
assume that this will work with a 'POST' request too:
\\\
Imports System.IO
Imports System.Net
..
..
..
Dim wrq As WebRequest = _
WebRequest.Create("https://example.org/shop/order.jsp")
wrq.Credentials = New NetworkCredential("username", "password")
Dim wrp As WebResponse = wrq.GetResponse()
Dim sr As New StreamReader(wrp.GetResponseStream())
MessageBox.Show(sr.ReadToEnd())
sr.Close()
wrp.Close()
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>