ZennoLab Assemblies Documentation
HttpPost(String,String,String,String,String,ResponceType,Int32,String,String,Boolean,Int32,String[],String,Boolean) Method
Example 
ZennoLab.CommandCenter Namespace > ZennoPoster Class > HttpPost Method : HttpPost(String,String,String,String,String,ResponceType,Int32,String,String,Boolean,Int32,String[],String,Boolean) Method

Type: System.String

Target address of request.

Type: System.String

The content of post request.

Type: System.String

The type of content.

Type: System.String

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

Type: System.String

Encoding format.

Type: ZennoLab.InterfacesLibrary.Enums.Http.ResponceType

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

Type: System.Int32

Timeout in milliseconds of request.

Type: System.String

Cookies for request.

Type: System.String

UserAgent for request.

Type: System.Boolean

true if use redirect; otherwise, false.

Type: System.Int32

Maximum count of redirects.

Type: System.String[]

An array of captures an array of additional headers.

Type: System.String

Download path for file.

Type: System.Boolean

true if use original url; otherwise, false.

Executes post request
Syntax

Parameters

url

Type: System.String

Target address of request.

content

Type: System.String

The content of post request.

contentPostingType

Type: System.String

The type of content.

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 in milliseconds 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.

DownloadPath

Type: System.String

Download path for file.

UseOriginalUrl

Type: System.Boolean

true if use original url; otherwise, false.

Return Value

Type: System.String

The result of request.

Remarks

Example
The following example shows call the HttpPost method.
var resultHttpPost = ZennoPoster.HttpPost("http://www.cs.tut.fi/cgi-bin/run/~jkorpela/echo.cgi", 
    "Comments=This+is0D0Asome+text0D0Ain+several+lines.&box=yes&hidden+field=something", 
    "application/x-www-form-urlencoded", "", "iso-8859-1",respType:ZennoLab.InterfacesLibrary.Enums.Http.ResponceType.HeaderAndBody);
$resultHttpPost = ZennoLab\CommandCenter\ZennoPoster::HttpPost("http://www.cs.tut.fi/cgi-bin/run/~jkorpela/echo.cgi", 
    "Comments=This+is0D0Asome+text0D0Ain+several+lines.&box=yes&hidden+field=something", 
    "application/x-www-form-urlencoded", "", "iso-8859-1", ZennoLab\InterfacesLibrary\Enums\Http\ResponceType::HeaderAndBody);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

ZennoPoster Class
ZennoPoster Members
Overload List
HttpGet Method