WebRequest method in VB.Net

M

Mothi Kannan

H

Herfried K. Wagner [MVP]

* "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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top