Solved

Long URL in SMS

Posted on 2016-11-20
6
23 Views
Last Modified: 2016-11-20
Dear Experts,

We are sending both email and SMS to survey repondents.  Our main issue is the long URL in SMS where we are sending in plain text,  that looks like this:
CLICK HERE FOR SURVEY: http://www.xxxxxxxxx.org/yyyyyyyyyyyy/xxxxxxx-yyyyyyyy-zzzzzzzz/Resident-Edit-MAIN-CUSTOMER-SATISFACTION-SURVEY-Mobile.aspx?MAIN_CUSTOMER_SATISFACTION_SURVEY=%3ckey%3e%3ccv%3e%3cc%3eDCS+ID%3c%2fc%3e%3cv%3e251%3c%2fv%3e%3c%2fcv%3e%3c%2fkey%3e

Now this is my question, is there any tool or utility similar to HMTL to represent it with a short meaningful name? Any suggestion would be highly appreciated.

TIA
0
Comment
Question by:JimiJ13
  • 3
  • 2
6 Comments
 
LVL 78

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 100 total points
Comment Utility
There are many url shorteners available i.e. bit.ly
2
 
LVL 17

Expert Comment

by:Pawan Kumar Khowal
Comment Utility
Another option could be TinyUrl.com
0
 

Author Comment

by:JimiJ13
Comment Utility
Hi David/Pawan,

Thanks for your prompt response.

Is there a way I can integrate it with C# web app?


Thanks.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 17

Accepted Solution

by:
Pawan Kumar Khowal earned 400 total points
Comment Utility
Try..

-----

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication3
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            System.Uri YourURLAddress = new System.Uri("http://tinyurl.com/api-create.php?url=" + " http://www.xxxxxxxxx.org/yyyyyyyyyyyy/xxxxxxx-yyyyyyyy-zzzzzzzz/Resident-Edit-MAIN-CUSTOMER-SATISFACTION-SURVEY-Mobile.aspx?MAIN_CUSTOMER_SATISFACTION_SURVEY=%3ckey%3e%3ccv%3e%3cc%3eDCS+ID%3c%2fc%3e%3cv%3e251%3c%2fv%3e%3c%2fcv%3e%3c%2fkey%3e");
            System.Net.WebClient client = new System.Net.WebClient();
            string SmallURL = client.DownloadString(YourURLAddress);
            Console.WriteLine(SmallURL);
        }
    }
}

--

Open in new window


Output

EE
<<Ref-Details>>

Hope it helps !!
0
 

Author Closing Comment

by:JimiJ13
Comment Utility
Thanks Pawan for nice, easy and complete solution.
0
 
LVL 17

Expert Comment

by:Pawan Kumar Khowal
Comment Utility
Welcome !!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now