our application requests a URL from the user, however the URL may contain information after the end of the address .com or .com.uk (any name of the country).
for example, a user can provide us with an address; www.example.com/sample/userbin?form=sl&t =
Of course, the above URL is made up and will not work, but it illustrates my point.
Our application also stores connection data that allows the application to access the Internet through a proxy server, etc. It also allows the user to specify a port number, but we note that WebClient does not provide a member for the port number.
The only other way is to add the port number to the URL, but how can we do this when we don’t know the URL provided by the user?
source
share