deanishe Posted September 4, 2014 Share Posted September 4, 2014 (edited) Resolve HTTP Redirects Follows any HTTP redirects and returns the canonical URL. Also displays information about the primary host (hostname, IP address(es), aliases). You can paste a URL into Alfred's query box or grab a URL directly from the clipboard. Installation You can install the workflow from GitHub or Packal. Usage resolve URL — Find and display the canonical URL after all redirects. ↩ — Open the new URL in your default browser ⌘+↩ — Copy the new URL to the clipboard resolvepb — Grab the URL from the clipboard and resolve any redirects as If the URL has no redirects, a "URL is canonical" message will be displayed. Licence, thanks This workflow is released under the MIT licence. It uses Alfred-Workflow for the plumbing and to resolve HTTP redirects. Edited September 4, 2014 by deanishe Link to comment
Florian Posted September 4, 2014 Share Posted September 4, 2014 That's cool. Could you add a secondary result with the resolved DNS matching the resolved address? I think it could be useful sometimes and it wouldn't take any extra time i believe. Link to comment
deanishe Posted September 4, 2014 Author Share Posted September 4, 2014 You mean the IP address of the domain? Link to comment
deanishe Posted September 4, 2014 Author Share Posted September 4, 2014 What's the use of the IP address(es)? It would take longer because it means another connection unless I use threads. And I'd have to parse the URLs to get the domain names. Relatively speaking, that's a lot of additional work, and I'm not sure what the benefit is. Link to comment
deanishe Posted September 4, 2014 Author Share Posted September 4, 2014 I looked into a bit and it was fairly easy to implement (thanks Python!) and the info is quite interesting, so I added DNS info on the host in v1.1. Link to comment
Florian Posted September 4, 2014 Share Posted September 4, 2014 Yeah that's cool And I can't think of a concrete application of having the IP handy, but I remember needing it in the past. And it's just cool Link to comment
deanishe Posted September 4, 2014 Author Share Posted September 4, 2014 You're right. It is pretty cool, even though I've no idea what to do with the information. The added delay is a bit annoying, though. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now