Skip to main content
When you need a request in a script, copy it out as code. Dragonfly turns any request, with its method, URL, headers, params and body, into a ready-to-run snippet.

Supported languages

Copy any request as code in any of these:
  • cURL
  • Node.js
  • Python
  • Go
  • PHP
  • Java
  • Rust

Copy a request

1

Open a request

Select the request you want in the Dragonfly sidebar.
2

Copy as code

Choose the language and copy the snippet to your clipboard.
3

Paste it

Drop it into your script, test or terminal.

Example

A request such as:
Copies out as cURL:
Copy as code pairs well with environments. Resolve your {{variables}} first, then export a snippet with the real values in place.