Get Method (String, String, WebProxy, NetworkCredential, String)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Gets an HTML document from an Internet resource and saves it to the specified file. Understands Proxies

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

Syntax

C#
public void Get(
	string url,
	string path,
	WebProxy proxy,
	NetworkCredential credentials,
	string method
)
Visual Basic
Public Sub Get ( _
	url As String, _
	path As String, _
	proxy As WebProxy, _
	credentials As NetworkCredential, _
	method As String _
)
Visual C++
public:
void Get(
	String^ url, 
	String^ path, 
	WebProxy^ proxy, 
	NetworkCredential^ credentials, 
	String^ method
)

Parameters

url
Type: System..::..String
The requested URL, such as "http://Myserver/Mypath/Myfile.asp".
path
Type: System..::..String
The location of the file where you want to save the document.
proxy
Type: System.Net..::..WebProxy

[Missing <param name="proxy"/> documentation for "M:HtmlAgilityPack.HtmlWeb.Get(System.String,System.String,System.Net.WebProxy,System.Net.NetworkCredential,System.String)"]

credentials
Type: System.Net..::..NetworkCredential

[Missing <param name="credentials"/> documentation for "M:HtmlAgilityPack.HtmlWeb.Get(System.String,System.String,System.Net.WebProxy,System.Net.NetworkCredential,System.String)"]

method
Type: System..::..String
The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.

See Also