Asp.Net HTTP Web Request Via Post & Get

It seems I prefer other peoples data a whole lot more than my own. Maybe it's because I don't like generating my own or the client considers that optional during development. Anyhow, over time I've coded up a very nice HTTP request library that I tend to use a bunch. Hope someone else can find it useful.
  • Send POST and GET reuqests with parameters
  • Set TimeOut and Referer
  • Http Status
  • Set Maximum Redirects
  • Read Cookie Information
Dim url As String = "http://www.google.com/"
Dim sbResults As StringBuilder = Nothing
Dim http As Utilities.HTTPRequest
Dim objs(2) As Object
   
http = New Utilities.HTTPRequest
objs = http.WebRequestURIIntoHTML(url, 1, _
Utilities.HTTPRequest.RequestMethod.GetRequest)
'Physical text results
sbResults = CType(objs(0), StringBuilder)
'Http Status
Dim httpStatus As String = CStr(objs(1))
Using the library is simple, it returns a StringBuilder object with the results of the request.
Http Request Library (text file)
6/5/2007 5:45 PM

contact us | sitemap | © 2007 RagingSmurf Technology Group