Skip to content

Instantly share code, notes, and snippets.

View amansrivastava's full-sized avatar
🏠
Working from home

Aman Srivastava amansrivastava

🏠
Working from home
View GitHub Profile
@amansrivastava
amansrivastava / validate-urls.sh
Created April 26, 2017 11:25
Validate URL redirections using cURL
#!/bin/bash
(
# The redirects: test URL and expected URL, separated by a
# pipe character
REDIRECTS=(
"http://www.google.com|http://www.google.co.in"
)