curlify icon indicating copy to clipboard operation
curlify copied to clipboard

Add skip_headers argument

Open ArtyomKomarenko opened this issue 4 years ago • 1 comments

By default returned string contains all headers including auto-generated ['accept', 'accept-encoding', 'connection', 'user-agent', 'content-length']. But these headers are not necessary to execute request by curl in terminal, and sometimes they can obstruct it execution. To avoid that case skip_headers=True can be passed to to_curl method.

ArtyomKomarenko avatar Oct 13 '21 11:10 ArtyomKomarenko