Skip to content

Cookies, certificates and proxy

The Dockito desktop app sends requests from your computer, so it handles cookies, certificates and proxies the way Postman does. The browser doesn’t send requests: it shows a request’s settings but you can’t change them there.

Open a request’s Settings tab:

  • Check the server’s certificate. Turn it off for a dev server with a self-signed certificate. While it’s off, the request and its response show a Certificate not checked badge. Every other request still checks.
  • Follow redirects and Max redirects (10 unless you set it, up to 50). When following is off, you see the redirect itself, with its status and Location. When a redirect goes to another host, the Authorization and Cookie headers aren’t sent there.
  • Encode the URL. Turn it off to send params and path values exactly as typed.
  • Use the cookie jar. Turn it off to send this request without the jar’s cookies and to keep none of the cookies it gets back.
  • Timeout in seconds (30 unless you set it, up to 600).

The settings are saved with the request, so everyone with the doc gets them. They go out in Postman exports as protocolProfileBehavior, and they come in from Postman imports. Copy as curl adds -k, -L --max-redirs and --max-time for them, and dockito run honours those flags.

The desktop app keeps one cookie jar on your computer, shared by every request, doc and environment, the way a browser does. Cookies are matched by domain, so staging and production don’t mix. When a response sets a cookie, the jar keeps it and sends it back to that site. A response’s Cookies tab shows what it set.

To see the jar, go to a request’s Settings › Cookies. It lists cookies by domain, and you can add, edit or delete one, or clear a domain or the whole jar. Cookies are never saved in a doc, and the jar file on disk is encrypted with a key kept in your keychain.

A Cookie header you type yourself is sent along with the jar’s cookies. If both have a cookie with the same name, yours is used.

Go to a request’s Settings › Proxy and certificates. These settings are for your computer and apply to every request:

  • Proxy: System (the default) uses the proxy set in System Settings. None sends directly. Custom uses an HTTP, HTTPS or SOCKS5 proxy, with an optional user and password and a bypass list, such as localhost, .bookings.example.
  • CA certificates: a company’s or a dev server’s own CA in PEM format. It is trusted along with your system’s CAs.
  • Client certificates for mutual TLS: one per host, such as api.bookings.example or *.bookings.example, with an optional port. Add a PEM certificate and key, or a PKCS#12 file (.p12, .pfx) and its passphrase. The certificate is sent only to its own host.

WebSocket and gRPC requests use the same CA certificates, client certificates and certificate check as HTTP requests. They also go through a Custom proxy, unless the host is on the bypass list, but only an HTTP or SOCKS5 one. With an HTTPS proxy they don’t connect, and the error says so. With System, WebSocket and gRPC requests connect directly, because the system’s proxy settings aren’t read for them yet. If your network needs a proxy for them, set it as Custom.

Passwords and private keys are kept in your keychain and are never saved in a doc. A PKCS#12 passphrase is used once to open the file and isn’t kept. A PEM key that is encrypted isn’t supported: add it as PKCS#12 instead, or decrypt it with openssl pkey.