WebRequest method in VB.Net

  • Thread starter Thread starter Mothi Kannan
  • Start date Start date
M

Mothi Kannan

* "Mothi Kannan said:
I tried to validate url links
i.e.1, "www.harvestadsdepot.com/nytjobs/outgoing/8667835.h
tm"

with the below coding
----------------------
Dim myRequest As HttpWebRequest = HttpWebRequest.Create
("http://www.harvestadsdepot.com/nytjobs/outgoing/8667835.
htm")
Dim myResponse As HttpWebResponse = myRequest.GetResponse
()
myResponse.Close()

but I got "Invalid URI: The format of the URI could not
be determined" error, but the link is exist

The code above works for my like a charm (.NET 1.0, Windows XP
Professional SP1).
 
Back
Top