sky-uk / mite

Mite - A Python Performance Testing Framework
https://sky-uk.github.io/mite/
MIT License
25 stars 7 forks source link

A convenience method for getting the curl equivalent of a request #6

Closed aecay closed 5 years ago

aecay commented 5 years ago

When talking with one of the functional test team about a particular web flow, he was able to export "curl" commands from his testing/documentation tool that exactly duplicate the requests that the tool makes. This seems like a useful and convenient standard format for individual web requests (e.g. the google chrome javascript dev console also allows you to copy a web request as curl from its network inspector pane).

It would be nice if mite could do this, possibly by exposing a method on acurl.Request objects.

aecay commented 5 years ago

https://github.com/ofw/curlify

This already exists (yay!), we just need to make sure it works with acurl (which it should, since api compatibility is a goal), and decide whether/how to include it with mite