|
-
Jun 29th, 2009, 06:34 AM
#1
Thread Starter
Hyperactive Member
WebClient Login
Hey
Well I'm trying to log into Squidoo and simply download data from basically your own dashboard, I've written this in C sharp but I don't think it matters tbh.
vb Code:
Private Sub LoginSquidoo()
Dim wc As New WebClient()
Dim nc As New NetworkCredential("email", "password", "http://www.squidoo.com/member/login")
wc.Credentials = nc
Try
Dim response As Byte() = wc.DownloadData("http://www.squidoo.com/lensmaster/dashboard")
Dim result As String = Encoding.ASCII.GetString(response)
richTextBox1.Text = result
Catch e As Exception
MessageBox.Show("Exception", e.ToString())
End Try
End Sub
I'm getting no errors, and analysing the HTML within the result string just shows the login page, without an error or anything, it's like I just browse to the login page and did nothing. The login page looks simple enough, maybe a POST or something, but maybe the authentication scheme just doesn't work with this, advice appreciated.
Learning C♯
Data Binding & Bound Controls - Objects and wizards will never be as intelligent as you, do it yourself! (Unless your Pro)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|