16,554
社区成员
发帖
与我相关
我的任务
分享
Imports System
Imports System.IO
Imports System.Net
Imports System.Text
Imports System.Web
Imports System.Web.Security.FormsAuthentication
Dim Web As New System.Net.WebClient()
Web.Headers.Add("Content-Type", "application/x-www-form-urlencoded")
Dim uid As String = TextBox1.Text
Dim pwd As String = TextBox2.Text
Dim paraCode As String = "{" + """" + "username" + """" + ":" + """" + uid + """" + "," + """" + "password" + """" + ":" + """" + pwd + """" + "}"
Dim AR As Byte() = System.Text.Encoding.GetEncoding(-0).GetBytes(paraCode)
Dim Str As Byte() = Web.UploadData("http://180.169.1.222:8082/api/login?para=", "POST", AR)
LinkLabel1.Text = "http://180.169.1.222:8082/api/login?para="
LinkLabel2.Text = paraCode
LinkLabel3.Text = "Url + " + Convert.ToBase64String(AR)
RichTextBox1.Text = "Address:" & Chr(10) & "http://180.169.1.222:8082/api/login?para=" + Convert.ToBase64String(AR) & Chr(10) & System.Text.Encoding.ASCII.GetString(Str)