Other Commands


Cookies are special variables passed by the server to the client and stored on the client side. When client do request, all stored cookies are sent to the server. Sometimes you will need to read some cookie to use it in the query or request header. For this purpose there is cookie_get command available. As an operand, it takes the name of the cookie and transfers cookie value to the register, so this command can only be used in a block context.

Usage example:

          # READ COOKIE WITH NAME `secure`
- cookie_get: secure

Sometimes it may be necessary to clean a cookie jar - a container where all cookies are stored. The cookie_reset command is used for this. It does not require any operands and can be executed in any context.

Usage examples:

- cookie_reset

In the next chapter, we'll show you how to execute fragments of scripts written in javascript.