UtilWebDownloadWebpage(String, String, Encoding) 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(
string url,
string userAgent,
Encoding enc
)
Public Shared Function DownloadWebpage (
url As String,
userAgent As String,
enc As Encoding
) As String
Dim url As String
Dim userAgent As String
Dim enc As Encoding
Dim returnValue As String
returnValue = UtilWeb.DownloadWebpage(url,
userAgent, enc)
public:
static String^ DownloadWebpage(
String^ url,
String^ userAgent,
Encoding^ enc
)
static member DownloadWebpage :
url : string *
userAgent : string *
enc : Encoding -> string
No code example is currently available or this language may not be supported.
- url String
-
The Url address.
- userAgent String
-
Specifies a custom user-agent to perform the web request.
- enc Encoding
-
The Encoding used to read the webpage.
String
The resulting source-code.
This is a code example.
No code example is currently available or this language may not be supported.
Dim html As String = DownloadWebpage("http://www.elhacker.net/", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)", Encoding.UTF8)
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.