CurlSettings.

RequestCommand Property

Summary

Gets or sets the command to use in the request.
Assembly
Cake.Curl.dll
Namespace
Cake.Curl
Containing Type
CurlSettings

Syntax

public string RequestCommand { get; set; }

Remarks

The set of commands that are considered valid for a particular request depends on the protocol used to talk to the remote service. For an HTTP request any valid HTTP method—such as
PUT
,
GET
,
POST
and
DELETE
—will do. Other protocols might have their own set of commands; for example, FTP has
LIST
while WebDAV supports
COPY
. Note that specifying the command using this option will simply set the word in the request and won't change curl's behavior in any way. If curl already has a dedicated option to perform a particular operation, it's almost always better to use that option instead of specifying the command directly, since that will make sure that curl behaves accordingly. For example, in order to send an HTTP
HEAD
request, setting the
"HEAD"
command in the request isn't enough. In that case, the dedicated
-I --head
option is a far better choice.

Value

Type Description
string