`-L` should handle most redirects, but if it’s not, you might need to tweak the max redirects with `--max-redirs`. Default is 50, which is usually enough, but some servers are... special.
Also, if you’re dealing with auth, `-L` can drop headers, so watch out for that. `--location-trusted` might help if you’re sending sensitive stuff.
For tools, Postman’s CLI (`newman`) can handle redirects too, if curl’s being stubborn.
Also, if you’re dealing with auth, `-L` can drop headers, so watch out for that. `--location-trusted` might help if you’re sending sensitive stuff.
For tools, Postman’s CLI (`newman`) can handle redirects too, if curl’s being stubborn.
