Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Seaching a StreamReader for a Value 1

Status
Not open for further replies.

mcadphd

Programmer
Oct 20, 2011
4
US
Need help on how to search a streamreader for a value.

''START CODE

Dim uri As New Uri(" & strFullString)


Dim data As String = "field-keywords=ASP.NET 2.0"
Dim request As HttpWebRequest = HttpWebRequest.Create(uri)

request.Method = WebRequestMethods.Http.Post
request.ContentLength = data.Length
request.ContentType = "application/x- Dim writer As New StreamWriter(request.GetRequestStream)
writer.Write(data)
writer.Close()
Dim oResponse As HttpWebResponse = request.GetResponse()
Dim reader As New StreamReader(oResponse.GetResponseStream())
Dim strReturnData As String = reader.ReadToEnd()
oResponse.Close()
'Response.Write(tmp)

'Sending the reader results to a text box for review
Me.TextBox1.Text = strReturnData

''END CODE
?? Not sure how to read the strReturnData to find the string "ssl_result=0" then I will set a value to let me know that it was found or not found.

Thanks for the help..
 

If strReturnData.IndexOf("ssl_result=0") >= 0 Then
MsgBox("ssl_result=0 found")
Else
MsgBox("ssl_result=0 not found")
End If

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top