Load Method (String, String, WebProxy, NetworkCredential)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Loads an HTML document from an Internet resource.

Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public HtmlDocument Load(
	string url,
	string method,
	WebProxy proxy,
	NetworkCredential credentials
)
Visual Basic
Public Function Load ( _
	url As String, _
	method As String, _
	proxy As WebProxy, _
	credentials As NetworkCredential _
) As HtmlDocument
Visual C++
public:
HtmlDocument^ Load(
	String^ url, 
	String^ method, 
	WebProxy^ proxy, 
	NetworkCredential^ credentials
)

Parameters

url
Type: System..::..String
The requested URL, such as "http://Myserver/Mypath/Myfile.asp".
method
Type: System..::..String
The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.
proxy
Type: System.Net..::..WebProxy
Proxy to use with this request
credentials
Type: System.Net..::..NetworkCredential
Credentials to use when authenticating

Return Value

A new HTML document.

See Also