Closed Bug 1444485 Opened 6 years ago Closed 6 years ago

"copy as cURL" not copying anything

Categories

(DevTools :: Netmonitor, defect)

60 Branch
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1269468

People

(Reporter: davidmirv, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0
Build ID: 20180302190033

Steps to reproduce:

Open network tab clicked XHR and context click -> copy as CURL


Actual results:

nothing, Nothing was copied into clipboard


Expected results:

copied cURL statement into clipboard
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
20180309100425

Works for me.
1. F12 to bring up the developer tools.
2. Click Network tab.
3. https://outlook.live.com/owa/
4. Enter username.
5. Right-click XHR entry, choose Copy, then Copy as cURL.

Can you reproduce the issue with the above STR?
If not, please provide an example link where the issue can be observed.
If yes, is it also reproducible in a brand new profile?
https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
Component: Untriaged → Developer Tools: Netmonitor
Flags: needinfo?(davidmirv)
OS: Unspecified → Mac OS X
Hardware: Unspecified → x86
Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Also can't use "copy as curl"
After upgrade 58 -> 59, I can't use Copy as CURL for POST requests: I got empty data section: '--data ""' for curl argument.
Should be fixed soon!

Honza
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Flags: needinfo?(davidmirv)
Product: Firefox → DevTools
This is still failing in 61.0.2 (64-bit), Mac OS 10.13.6 (17G65) for certain localhost URLs.

STR:

1. Visit a URL that makes XHR requests, seems to only be affecting localhost URLs right now.
2. Open developer tools
3. Open Network pane
4. Right click on the XHR URL (e.g. http://localhost:4321/api/v1/topics/). For me this is an OPTIONS request.
5. Click Copy > Copy as cURL
6. Paste buffer elsewhere

Observed:

Paste buffer is empty or contains previous contents, NOT the copied URL request.

Expected:

Paste buffer contains the URL request.
I want to add to Simon's comment that the Copy as cURL only seems to work for GET requests.
Some more details after Simon's comment. My tests are on 61.0.2 (64 bits), Mac OS 10.11.6
For me it work if I access the local Web Server via '127.0.0.1', but it (usually) does not work via 'localhost'

When it does not work, I have either only the URL (as if doing Copy Address), or it does not copy anything (i.e. paste return previous content)
You need to log in before you can comment on or make changes to this bug.