Hacker News new | ask | show | jobs
by djvdq 1039 days ago
And now add browser user-agent to the curl request and watch how slow it gets.

- `time curl -A "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0" -L https://t.co/4fs609qwW` -> 4.730 total

- `time curl -L https://t.co/4fs609qwWt` -> 1.313 total

Same request, the only difference is user-agent.

1 comments

your URLs are different.
Only because I copied the first one incorrectly to put it here. I haven't selected full command, so there is a missing "t" at the end of first link