flutterflutter-devtools

Replay request or copy request as CURL in Flutter DevTools


Is there a way to copy the HTTP request as a curl command (colloquially, "copy as curl") or to replay it from the network developer tools for Flutter?


Solution

  • The latest devtools versions should have the copy-as-curl functionality. See the PR here.

    See also the feature request issue that the above PR closed: feature request: copy http request "as curl" #3042

    According to the CHANGELOG the feature was released in version 2.14.0, so in theory you just have to upgrade to that or any later version, and you'll have Copy as URL and Copy cURL.