Detect URI proxy redirects with CURL (Linux)
?
S
BashSimple snippet to detect URL redirects using CURL. Useful to detect if any Proxy Server / Load Balancer is stripping out query parameters or paths from GET operations on full URI.
1curl -v -L "http://coderecipes.org/register/?btag=test" 2>&1 | egrep "^> (Host:|GET)"
2
3curl -sL -w "%{http_code}" "https://frontier.coding-cloud.com/llm/gpt" -o /dev/null || echo "Status: $?"
4Created on 7/11/2017