我之前在同一个项目中有一个涉及 php 和 mysql 的问题,
这是.net,我试图阅读我的 php 响应的来源,并在某个字符或短语后停止,其中我的<br />
我试过谷歌,没有运气,我希望这里有人能救我!
这是我当前的代码。
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://mywebsite/db.php?hwid=" + TextBox1.Text)
Dim response As System.Net.HttpWebResponse = request.GetResponse()
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())
Dim name As String = sr.ReadToEnd
If name = "" Then
MessageBox.Show("HWID Not Activated!", "Error: Invalid HWID")
Else
MessageBox.Show("Welcome, " + name)
Me.Hide()
Form1.Show()
End If
End Sub
我想在源代码之后停止阅读所有内容<br />