curl follow redirect but change url params before request code example Example: linux curl follow redirect curl -L google.com