stnkyminky
Programmer
I need to post 2 or more variables to a website. I can successfully post 1 given the code below.
As you can see I've tried to add multiple variables unsuccessfully.
Dim web As New System.Net.WebClient
web.Headers.Add("Content-Type", "application/x-
'Works
Dim d As Byte() = System.Text.Encoding.ASCII.GetBytes("username=test"
'Doesn't work
Dim d As Byte() = System.Text.Encoding.ASCII.GetBytes("username=test",pwd=foo"
Dim res As Byte() = web.UploadData(" "POST", d)
Console.Write(System.Text.Encoding.ASCII.GetString(res))
Scott
Programmer Analyst
<{{><
As you can see I've tried to add multiple variables unsuccessfully.
Dim web As New System.Net.WebClient
web.Headers.Add("Content-Type", "application/x-
'Works
Dim d As Byte() = System.Text.Encoding.ASCII.GetBytes("username=test"
'Doesn't work
Dim d As Byte() = System.Text.Encoding.ASCII.GetBytes("username=test",pwd=foo"
Dim res As Byte() = web.UploadData(" "POST", d)
Console.Write(System.Text.Encoding.ASCII.GetString(res))
Scott
Programmer Analyst
<{{><