System.Uri bug??

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following URL:

http://citeseer.ist.psu.edu/rd/5581...cs343zSzpszSzpathprof.pdf/ball96efficient.pdf

Creating System.Uri with the above URL:

Uri uri = new Uri(aboveURL)

removes the extra slash after "Download/http://". The debugger shows it as
Download/http:/citeseer.ist....

The Uri in HttpWebRequest (which is created with the above URL) also removes
the extra slash. As a result, I get NameResolution exception.

The Uri is shown as

http://citeseer.ist.psu.edu/rd/5581...cs343zSzpszSzpathprof.pdf/ball96efficient.pdf
 
removes the extra slash after "Download/http://". The debugger shows it as
Download/http:/citeseer.ist....

If you are specifying "Download/http://" as the protocol, then you will receive an exception.

Do not use "Download/" as a prefix.
 
Back
Top