Wrong HTTP method is copied after 'Edit and Resend'
Categories
(DevTools :: Netmonitor, defect)
Tracking
(Not tracked)
People
(Reporter: fuggy0, Unassigned)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
Open the Network tab and choose any GET request. I 'Edit and Resend' GET request to POST and add a POST body. I sent edited request. After that I copied the new POST request.
Actual results:
- Copy as cURL (POSIX) — Doesn't work in all presented versions.
Required option '-X POST' is not added. The POST body has been added. - Copy as cURL (Windows) — Doesn't work in all presented versions.
Required option '-X POST' is not added. The POST body has been added. - Copy All as HAR — Doesn't work in all presented versions.
Method GET was copied:
"entries": [
"request": {
"method": "GET",
Sometimes copied correctly.
The POST body has been added. - Copy as Fetch — Works in all presented versions.
Expected results:
- Should add '-X POST' option.
- Should add '-X POST' option.
- Should copied as
"entries": [
"request": {
"method": "POST", - Сorrect.
Comment 1•4 years ago
|
||
Thanks for the report!
- I don't see GET/POST in the result of
Copy ac CURL
at all. I don't have to edit and resend a request. - I do see GET/POST when copying data as HAR (using the conext menu
Copy All as HAR
)
Can you please try Firefox Nightly?
https://www.mozilla.org/en-US/firefox/channel/desktop/
Honza
Updates:
Method GET was copied:
"entries": [
"request": {
"method": "GET",
It should read:
Method POST was copied:
"entries": [
"request": {
"method": "GET",
I tested in fresh Firefox Nightly and the issue is present.
I don't have to edit and resend a request. Copy as cURL any non-GET request does not add '-X <method>' option.
'-X PUT' and '-X DELETE' is added.
(In reply to Jan Honza Odvarko [:Honza] (always need-info? me) from comment #1)
- I don't see GET/POST in the result of
Copy ac CURL
at all. I don't have to edit and resend a request.- I do see GET/POST when copying data as HAR (using the conext menu
Copy All as HAR
)
- Option '-X GET' is not mandatory (GET is default) , but '-X POST' (and other) is required. '-X POST' is not mandatory, if option '--data' is set.
Option '--data-raw' was added. Then I cannot confirm that this is a real bug. - 'Copy All as HAR' copies all requests on Network tab. I cannot reproduce this bug in Firefox Nightly.
Since '-X POST' option is not mandatory in this case, I think need to mark this issue as INVALID.
Description
•