.NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help
Go Back  Xtreme Visual Basic Talk > > > .NET 2003 AE - httpwebrequest help


Reply
 
Thread Tools Display Modes
  #1  
Old 07-10-2005, 02:33 PM
RyanB88 RyanB88 is offline
Junior Contributor
 
Join Date: Jan 2005
Location: Spokane, WA
Posts: 209
Default .NET 2003 AE - httpwebrequest help


i got this code so far

Code:
Public Function GetTextFile(ByVal Url As String) As String Dim wrq As WebRequest = WebRequest.Create("http://www.xtremevbtalk.com/check.php?act=reg&prog=MedInfo&name=" + TextBox1.Text + "&key=" + TextBox2.Text + "&hdmodel=" + TextBox3.Text + "&hdid=" + TextBox4.Text + "&biosmodel=" + TextBox5.Text + "&biosid=" + TextBox6.Text) Dim wrp As HttpWebResponse = DirectCast(wrq.GetResponse(), HttpWebResponse) Dim sr As New StreamReader(wrp.GetResponseStream) Dim Text As String = sr.ReadToEnd() sr.Close() wrp.Close() 'get the text from the site...and show it in a textbox Return Text = response.Text End Function Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'verify! GetTextFile("http://www.xtremevbtalk.com/check.php?act=reg&prog=MedInfo&name=" + TextBox1.Text + "&key=" + TextBox2.Text + "&hdmodel=" + TextBox3.Text + "&hdid=" + TextBox4.Text + "&biosmodel=" + TextBox5.Text + "&biosid=" + TextBox6.Text) 'Now to interpret the retuned text and act upon it....
but I think i've heard that the response is the entire html code, wich makes sense, if so what would be an easy way to stip off the

Quote:
<html><head><title>title here</title></head><body>
and

Quote:
</body></html>
so i only have the text of the body to then respond to?

Edit: i changed my sites domain to www.visualbasicforum.com to aviod any conflicts as i am not sure if you can post other sites url's
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
.NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help .NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help
 
.NET 2003 AE - httpwebrequest help
.NET 2003 AE - httpwebrequest help
 
-->