Hacker News new | ask | show | jobs
by 000ooo000 860 days ago
I once had to debug a sporadic problem in a prod system I wasn't familar with, which seemed to be caused by two requests made simultaneously by different users. I could have assembled curl commands but the easiest thing to reproduce and verify the issue was to run a setTimeout(clickSubmit, 5s) in both browser session's consoles. Weirdly niche use case, but something like this extension would've been useful.
1 comments

You can also copy curl command right from the browser network tab, to recreate the request.
I don't know of a reliable way of calling two separate curl commands at once though. Maybe abusing the shell job system, or learning the 'at' command. It has been a while since I've needed to do something like this.
Why abuse? That's what it's for. I'd just copy paste the curl line into a script file several times and put & at the end of each line.

Then end the script with wait command and run the script.

if curl & curl is too slow, try using gnu/parallel.