Closed Bug 1677472 Opened 4 years ago Closed 3 years ago

Wrong HTTP method is copied after 'Edit and Resend'

Categories

(DevTools :: Netmonitor, defect)

Firefox 84
defect

Tracking

(Not tracked)

RESOLVED INVALID

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:

  1. Copy as cURL (POSIX) — Doesn't work in all presented versions.
    Required option '-X POST' is not added. The POST body has been added.
  2. Copy as cURL (Windows) — Doesn't work in all presented versions.
    Required option '-X POST' is not added. The POST body has been added.
  3. 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.
  4. Copy as Fetch — Works in all presented versions.

Expected results:

  1. Should add '-X POST' option.
  2. Should add '-X POST' option.
  3. Should copied as
    "entries": [
    "request": {
    "method": "POST",
  4. Сorrect.
Component: Untriaged → Netmonitor
Product: Firefox → DevTools

Thanks for the report!

  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.
  2. 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

Flags: needinfo?(fuggy0)

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)

  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.
  2. I do see GET/POST when copying data as HAR (using the conext menu Copy All as HAR)
  1. 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.
  2. '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.

Flags: needinfo?(fuggy0)
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.