Try this :
Code:Public Class Form1 Dim StrHTML As String Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ToolStripStatusLabel1.Text = "Waiting to recieve infromation..." End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = (vbNullString) Or TextBox2.Text = (vbNullString) Then ToolStripStatusLabel1.Text = "Please input a username/password..." End If StrHTML = Wrapper.GetWrapper("http://soliaonline.com/community/ucp.php?mode=login") StrHTML = Wrapper.PostWrapper("http://soliaonline.com/community/ucp.php?mode=login","username=" & TextBox1.Text & "&password=" & Textbox2.Text & "&redirect=ucp.php%3Fmode%3Dlogin&sid=9fba62d8aa13ae0207c5b5da4bffbb66&login=Login") If (InStr(1, StrHTML, "index.php")) Then ToolStripStatusLabel1.Text = "You are now logged in..." Else ToolStripStatusLabel1.Text = "Failed to log on..." Wrapper.ClearCookies() End If End Sub End Class
Results 1 to 21 of 21
Thread: VB.NET HttpWrapper
Hybrid View
- 01 Jan. 2010 06:17am #1