# REST Client

Allows performing Get, Post, Put, Delete, Options requests.

<table data-header-hidden><thead><tr><th width="198.66668701171875" valign="top"></th><th width="274.83331298828125" valign="top"></th></tr></thead><tbody><tr><td valign="top">URL</td><td valign="top"><p>[Text] Link to the web page to which the HTTP request should be sent.</p><p>Must start with a protocol, for example,</p><p><code>"http://www.mydomain.com/list.php"</code>.</p></td></tr><tr><td valign="top">Request Type</td><td valign="top"><p>Select the request type.</p><p>Possible options:</p><ul><li>Get,</li><li>Options,</li><li>Post,</li><li>Put,</li><li>Delete.</li></ul></td></tr><tr><td valign="top">Encoding</td><td valign="top">Encoding of the web page.</td></tr><tr><td valign="top">Login</td><td valign="top">[Text] Login for network authentication.</td></tr><tr><td valign="top">Password</td><td valign="top">[Text/SecureString] Password for network authentication.</td></tr><tr><td valign="top">PreAuthenticate</td><td valign="top">Indicates whether pre-authentication is required for this request.</td></tr><tr><td valign="top">Accept Header</td><td valign="top">[Text] Accept header for the request. For example, <code>"application/json"</code>, <code>"application/xml"</code>.</td></tr><tr><td valign="top">Parameters</td><td valign="top">[Dictionary] Parameters passed in the request.</td></tr><tr><td valign="top">Headers</td><td valign="top">[Dictionary] Headers passed in the request.</td></tr><tr><td valign="top">Cookies</td><td valign="top"><p>[List of objects] List of cookies. This property should contain a list of Cookie objects.</p><p>The list can be obtained using the "Data Table in Cookies" block, using the "Get Cookies" block from the "Browser Automation" palette, using the output property "Cookies" of this block.</p></td></tr><tr><td valign="top">Files</td><td valign="top">[Dictionary] Files passed in the request. For example, <code>@{"file.txt"="c:\file.txt"}</code>.</td></tr><tr><td valign="top">Request Body</td><td valign="top"><p>[Text] Body of the</p><p>POST/PUT/DELETE request.</p></td></tr><tr><td valign="top">Content-Type Header</td><td valign="top"><p>[Text] Content-Type header (MIME type) indicating to the client what the type of the transmitted content will be.</p><p>For example, <code>"application/json"</code>, <code>"application/xml"</code>, <code>"application/x-www-form-urlencoded"</code>, <code>"multipart/form-data"</code>.</p></td></tr><tr><td valign="top">Timeout</td><td valign="top">[Number] Timeout in seconds.</td></tr><tr><td valign="top">Result</td><td valign="top">[Text] Returns the result of the request.</td></tr><tr><td valign="top">Response Code</td><td valign="top">[Number] HTTP response code.</td></tr><tr><td valign="top">Response Headers</td><td valign="top">[Dictionary] Dictionary with response headers.</td></tr><tr><td valign="top">Cookies</td><td valign="top">[List] List of cookies. The list contains Cookie objects. For working with objects, see the hint in the expression editor.</td></tr><tr><td valign="top">Current Url</td><td valign="top">[Text] Current URL. This URL may be useful if a redirect to another page has occurred.</td></tr><tr><td valign="top">Error Handling Level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - by default; "Ignore" - errors are ignored; "Handle" - errors are handled. If "Default" is selected, the value of the "Start" block of this diagram will be used.</li></ul></td></tr><tr><td valign="top">Message Level</td><td valign="top"><p>Select the message level that the blocks will output during operation.</p><p>Possible values:</p><ul><li>"Default" - by default;</li><li>"Release" - output is disabled;</li><li>"Debug" - outputs main information;</li><li>"Detailed" - outputs detailed information.</li></ul><p>If "Default" is selected, the value of the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error Message</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block.</td></tr></tbody></table>
