Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: HResponse Post(string, params HArg[])

Declaration

public HResponse Post(
    string url,
    params HArg[] args
)

Summary

Performs a POST request with the body consisting of a series of key-value arguments.

Parameters

stringurl The URL of the request. If the URL does not begin with http:// or https://, it is automatically prepended with HClient.RootUrl.
HArg[]args The arguments to pass with the POST request. Null values are allowed and ignored.

Returns

The response received from the server.

Remarks

This method automatically calls either HClient.PostFormdata(string, params HArg[]) or HClient.PostUrlencoded(string, params HArg[]) depending on whether the provided arguments contain any file uploads or not.