ZennoLab Assemblies Documentation
HttpGet Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > ZennoPoster Class : HttpGet Method
url

Type: System.String

Target address of request.

proxy

Type: System.String

Proxy string (for example: socks5://llogin:pass@8.5.6.7:8080).

Encoding

Type: System.String

Encoding format.

respType

Type: ZennoLab.InterfacesLibrary.Enums.Http.ResponceType

Response type (cane take values: BodyOnly, HeaderOnly, HeaderAndBody, File).

Timeout

Type: System.Int32

Timeout of request.

Cookies

Type: System.String

Cookies for request.

UserAgent

Type: System.String

UserAgent for request.

UseRedirect

Type: System.Boolean

true if use redirect; otherwise, false.

MaxRedirectCount

Type: System.Int32

Maximum count of redirects.

AdditionalHeaders

Type: System.String[]

An array of captures an array of additional headers.

Glossary Item Box

Executes get request

Syntax

C# 
public static string HttpGet( 
   string url,
   string proxy,
   string Encoding,
   ResponceType respType,
   int Timeout,
   string Cookies,
   string UserAgent,
   bool UseRedirect,
   int MaxRedirectCount,
   string[] AdditionalHeaders
)

Parameters

url

Type: System.String

Target address of request.

proxy

Type: System.String

Proxy string (for example: socks5://llogin:pass@8.5.6.7:8080).

Encoding

Type: System.String

Encoding format.

respType

Type: ZennoLab.InterfacesLibrary.Enums.Http.ResponceType

Response type (cane take values: BodyOnly, HeaderOnly, HeaderAndBody, File).

Timeout

Type: System.Int32

Timeout of request.

Cookies

Type: System.String

Cookies for request.

UserAgent

Type: System.String

UserAgent for request.

UseRedirect

Type: System.Boolean

true if use redirect; otherwise, false.

MaxRedirectCount

Type: System.Int32

Maximum count of redirects.

AdditionalHeaders

Type: System.String[]

An array of captures an array of additional headers.

Return Value

Type: System.String

The result of request.

Remarks

Example

The following example shows call the HttpGet method.
C#Copy Code
var resultHttpGet = ZennoPoster.HttpGet("https://www.google.ru/", "", "UTF-8", ResponceType.HeaderAndBody);

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.