UtilWebDownloadWebpage(Uri, WebProxy, String) Method
Downloads the source-code of an Url that points to an Html document.
Namespace: DevCase.Core.Networking.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string DownloadWebpage(
Uri uri,
WebProxy proxy,
string userAgent
)
Public Shared Function DownloadWebpage (
uri As Uri,
proxy As WebProxy,
userAgent As String
) As String
Dim uri As Uri
Dim proxy As WebProxy
Dim userAgent As String
Dim returnValue As String
returnValue = UtilWeb.DownloadWebpage(uri,
proxy, userAgent)
public:
static String^ DownloadWebpage(
Uri^ uri,
WebProxy^ proxy,
String^ userAgent
)
static member DownloadWebpage :
uri : Uri *
proxy : WebProxy *
userAgent : string -> string
No code example is currently available or this language may not be supported.
- uri Uri
-
The Uri address.
- proxy WebProxy
-
The proxy to use.
- userAgent String
-
Specifies a custom user-agent to perform the web request.
String
The resulting source-code.
This is a code example.
No code example is currently available or this language may not be supported.
Dim proxy As New WebProxy(Host:="myproxy address", Port:=800)
proxy.Credentials = New NetworkCredential("user", "pass")
Dim html As String = DownloadWebpage(New Uri("http://www.elhacker.net/"), proxy, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.