Microsoft
Software
Hardware
Network
Question : Bash: curl and redirected url
Hi experts,
I know that
status=$(curl -s --head "$URL" | awk '/HTTP/ {print $2})
gives http code such as "200" or "404" Assume that the code is "310" ("moved permanently"), then how to use "curl" to retrieve the new url?
I googled but I got no answers.
Thanks for any replies.
Answer : Bash: curl and redirected url
NewURL=$(curl -s --head "$URL" | awk '/Location:/ {print $2}')
Random Solutions
dsn=5.0.0, stat=Service unavailable
Unable to view modify or remove public folders Exchange 2000
sybase query
Sybase 12.5: Compare Table Load Performace between Dev and Prod box
Incoming Mail Configuration
benefits and "issues" when using exchange cached mode? How would you tackle those issues?
How can I limit Remote Desktop connections to the Administrator account only?
disable print screen function
Sql server agent service doesn't start
PowerShell script to create/update/delete in Windows 2003 AD via csv file