Getting the final URL after a redirected HTTP GET Request

sming

New member
Hi folks,

In a nutshell, Reddit bans the Google photos short links, which is really frustrating. What I would like is to write a macro which does a GET on the short link (screenshot attached) - which is what Google photos gives you when you share an album - and perform a HTTP GET Request with the redirect box checked - and I don't care about the response whatsoever I just care about the final URL - i.e. I want the full length Google photos link.

Does anyone know of a way to do this in macrodroid? For reference here is how you do it to be redirected from Google.Com to www.google.com using the venerable curl command in your favorite shell:

curl -Ls -o /dev/null -w %{url_effective} http://google.com http://www.google.com/

From the always excellent Baeldung site.

Cheers, all help welcome!
Pete

1000026628.jpg
 

Dimlos

Well-known member
I think this macro can expand the URL.
 

Attachments

  • Macro.jpg
    Macro.jpg
    539.7 KB · Views: 11
  • URL_Expander.macro
    2.6 KB · Views: 2
Top