question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Windows commands created using "Copy as cURL (cmd)"

See original GitHub issue

In cmd curl, this is an escaped thing: --data "a=b^&c=d^&e=f^&h=i^&j=k^&l=m" In this case: ^& should be &. In other words, you’ll have to unescape the string.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
NickCarneirocommented, Aug 15, 2019

@jgroom33 I would also consider cmd curl out of scope, BUT @cf512 already has an in-progress PR to support this kind of input. The only thing left is to separate out the code path into a new input language parser. I’m meeting with him today to see if he wants to proceed.

@Revadike Thanks for providing a clear example.

1reaction
Revadikecommented, Aug 15, 2019

Steps to reproduce:

  1. Go to network tab in dev tools
  2. Submit form
  3. Copy request as cURL (cmd)
  4. Observe how the body/data of the copied cURL is escaped (for cmd)
  5. Use your website to convert cURL to node.js request
  6. Data/body remains escaped for cmd
Read more comments on GitHub >

github_iconTop Results From Across the Web

Using 'Copy as cURL' from Chrome in windows command line
Is there a simple way to make this formatable for windows? I tried replacing all the single quotes with double quotes but then...
Read more >
Copy as curl
On the line of the specific resource you are interested in, you right-click with the mouse and you select "Copy as cURL" and...
Read more >
Support Windows commands created using "Copy as cURL ...
Copy request as cURL (cmd); Observe how the body/data of the copied cURL is escaped (for cmd); Use your website to convert cURL...
Read more >
Copy as cURL - Chrome DevTools - Dev Tips
Right click on resource and select Copy > Copy as cURL. Paste your clipboard contents into your terminal. Why is this useful. This...
Read more >
copy as curl - Daniel Stenberg - Haxx
On the line of the specific resource you're interested in, you right-click with the mouse and you select “Copy as cURL” and it'll...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found