CurlSettings.

FollowRedirects Property

Summary

Gets or sets a value indicating whether to follow HTTP redirects.
Assembly
Cake.Curl.dll
Namespace
Cake.Curl
Containing Type
CurlSettings

Syntax

public bool FollowRedirects { get; set; }

Remarks

If the remote service responds with a 3xx status code and this flag is set to , curl will redo the request to the URL found in the
Location
response header. Note that if the remote service responded with a
301
(Moved Permanently),
302
(Found) or
303
(See Other) status code, curl will redo the request using the
GET
method, even if the original request was using another method (like for example
PUT
or
POST
). For all other 3xx status codes, curl will redo the request using the same method as the one specified in the original request.

Value

Type Description
bool