firefox-devtools / devtools-core

:rocket: Packages for Firefox DevTools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Network Tab "copy as curl" not including www-form-urlencoded params

mckernanin opened this issue · comments

Hey there, recently noticed that when trying to copy a network request that is www-form-urlencoded, the command doesn't include params. Example:

From Firefox (Dev Edition, 60.0.0 b10):

curl 'http://purebrands.test/wp-login.php' -H 'Host: purebrands.test' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: http://purebrands.test/wp-login.php' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Cookie: wordpress_test_cookie=WP+Cookie+check' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' --data ''

From Chrome 65.0.3325.162:

curl 'http://purebrands.test/wp-login.php' -H 'Cookie: wordpress_test_cookie=WP+Cookie+check' -H 'Origin: http://purebrands.test' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.9' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' -H 'Cache-Control: max-age=0' -H 'Referer: http://purebrands.test/wp-login.php?loggedout=true' -H 'Connection: keep-alive' --data 'log=kmckernan&pwd=kmckernan&wp-submit=Log+In&redirect_to=http%3A%2F%2Fpurebrands.test%2Fwp-admin%2F&testcookie=1' --compressed

@mckernanin Hi, can you please file a bug in Bugzilla:
https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=Developer%20Tools%3A%20Netmonitor

There are already some related "copy as curl" bugs and it's better if I can track it at one place. Thanks!

You can also put link to that bug report here.

Honza