"Anthony P." <pa*******@gmail.comschrieb:
I'm using an URI object and I need to pass the url as follows:
http://ausername:ap*******@example.com
The problem is that when VB.NET encounters the colon in the URL it
thinks it's a port and can't parse it. Is there a better way to pass
these credentials or, if not, how can I get around this?
As mentioned in the other post, use 'NetworkCredentials' instead. Note that
the above URI is actually /not/ a valid HTTP URI because HTTP URIs must not
contain credentials like FTP URIs, for example. Only some browsers support
credentials as part of HTTP URIs (this dangerous "feature" has been dropped
from IE some years ago).
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>