What are the most useful curl opts for debugging and performance? or How do you optimize your request

16 Replies, 1768 Views

`-L` and `-v` are my bread and butter, but `-K` is underrated. Store all your opts in a config file and reuse ’em.

For example, `curl -K myconfig.txt` where `myconfig.txt` has all your headers, timeouts, etc. Saves so much typing.

Also, `--parallel` (if your curl supports it) for firing off multiple requests at once. Speed demon mode.

Oh, and `--stderr -` to mix errors with stdout. Cleaner logging for scripts.

Messages In This Thread



Users browsing this thread: 1 Guest(s)