aandroidtest
aandroidtest

Reputation: 1503

Android finding the original url from shortened url

Currently, I am trying to find the original url from a shortened url. I am using the reference from here:

HttpClient 4 - how to capture last redirect URL

It could work and I am able to get the original url. The purpose if this is to ensure that the shortened url is not not malicious.

But how to I test/ensure that I am actually not accessing the link in order to get the original url?

Is it possible?

Upvotes: 0

Views: 224

Answers (1)

FunkTheMonk
FunkTheMonk

Reputation: 10938

Seems like all you want to do is a HEAD instead of a GET?

Upvotes: 1

Related Questions