curlify
curlify copied to clipboard
Add skip_headers argument
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.