Hi Chirambattu,
I'm afraid I don't know the answer to your question, but you might have better luck in the aspnet newsgroup
nntp://microsoft.public.dotnet.framework.aspnet
It appears to me that the web server is somehow deciding to not send any information and I don't think there is any redirection involved.
However, unrelated to not getting any information, when you use Encoding.ASCII to get the string, you might lose information as the html code on that page specifies ISO-8859-1 as its encoding. Use this line instead
Dim download as String = Encoding.GetEncoding("ISO-8859-1").GetString(myDataBuffer)
On Wed, 21 Sep 2005 14:20:01 +0200, Chirambattu <Ch*********@discussions.microsoft.com> wrote:
the following code dosn't get me HTML why? can any one help
Imports System.Net
Dim myWebClient As New WebClient()
Dim myDatabuffer As Byte() =
myWebClient.DownloadData("http://v3.espacenet.com/pdfdocnav?F=128&RPN=DE9319650U1")
Dim download as String = Encoding.ASCII.GetString(myDataBuffer)
--
Happy coding!
Morten Wennevik [C# MVP]