Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to write a program to find out what an iplogger's destination is like the one's you see goo.gl/???? and the only method I can find involves GET and you cannot use GET on link pointers. Sorry this may sound like a dumb question, I'm still a beginner at programmer and have been teaching myself.
So here is what I used but it involves GetResponse-

C#
HttpWebRequest connection = (HttpWebRequest)WebRequest.Create(textBox8.Text);
connection.Method = WebRequestMethods.Http.Head;
connection.MaximumAutomaticRedirections = 2;
connection.AllowAutoRedirect = true;
HttpWebResponse response = (HttpWebResponse)connection.GetResponse();
textBox1.Text = ("redirected to: " + response.GetResponseHeader("Location"));
response.Close();


What I have tried:

I Tried using a webBrowser but it got messy.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900