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
AdWords - Your Google Account Management Team
Permitting internal and outgoing HTML and Rich text in Exchange but converting incoming (external) HTML emails to plain text.
Excel Julian Date
Verify failed when burn Mandriva iso image using Nero
how to set integer in treenode tag
How to setup All Users Shortcut to run in Windows 95 compatibility mode for Terminal Services on Server 2003
What's a good alternate to Microsoft Date and Time Picker Control (dtpicker) on tabular datasheets?
Ghost 14, unmounted drive and unassigned drive letter
How can I get a value to show in a combobox.dropdownlist?
RUBY - RESULTS TO .TXT FILE