Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 932339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:39:06+00:00 2026-05-15T20:39:06+00:00

I have a web application which uses URLs that look like this: http://library.example.com/Register.aspx?query=academic&key=586c70bb-5683-419c-aae9-e596af9ab66a (The

  • 0

I have a web application which uses URLs that look like this:

http://library.example.com/Register.aspx?query=academic&key=586c70bb-5683-419c-aae9-e596af9ab66a

(The GUID is used instead of a plain int to discourage guessing, which is all we need for now.)

The problem: that long URL frequently breaks when sent via email. It’s humans sending the emails, so I can’t control the formatting. Sometimes it’s the sending email program at fault, sometimes the receiving, but regardless I’m spending too much time on talking people through fixing problems.

Everything has to be from this domain, so I can’t use a third-party shortener. I could host my own, but that seems like a kludge.

Any suggestions?

Edits

@Sunny: Thanks for elaborating, but my situation differs from what you assume. A corporate customer (of mine) passes this URL to its employees, and they use it to get to a branded Registration page. They need to give a working email as part of registration, and that gets forwarded to the corporate supervisor.

Registration gets them access to a database, but what they see is not specific to the corporate customer. So the occasional interloper is not a big deal; when they get weeded out by the corporate supervisor, we invite them to subscribe.

@Everybody: the email breakage is not on the punctuation (?&=), but at some predetermined line-length. Surprised me, too. Note that the domain name is long, as is the path to the virtual directory, which is a part of the problem.

After reading the responses, I’m going to use base64 as a pseudo-shortener, something like:

http://a.MyLongDomainName.com/?q=a&key=base64_encoded_GUID

…and see if that survives. Thanks to all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:39:07+00:00Added an answer on May 15, 2026 at 8:39 pm

    You can at least shorten it a bit. Right now, you’re send a GUID, which is a 128-bit number, in a format that is essentially hexadecimal with extra dashes. If you view the GUID as a byte array and convert it to Base64, you can cut things down a bit. Likewise, “query=academic” could be “q=a”.

    The GUID is currently taking up 36 characters. Converting to Base-64 cuts this down to 22, saving 14 chars. Replacing “query=academic&key=” with “q=a&k=” shaves off another 13. Cutting a total of 27 characters may well keep your URL short enough not to wrap, despite the presence of ampersands and equal signs.

    One more detail: the Base-64 text is going to end with an “=”, which will then be hex-encoded into “%3D”. The solution is to cut that character off, because it’s just padding.

    With credit to the original posters, it looks like the best bet is a combination of things:

    1. Compact GUID with base-64.
    2. Shorten key names and, if possible, values.
    3. Wrap URL in angle-braces to encourage client to parse it properly.
    4. If possible, replace key names with URL-rewriting, so that it looks like a path.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP web application which uses a MySQL database for object tagging,
I have a problem with a little .Net web application which uses the Amazon
We have an intranet asp.net web application which uses the OOTB ASP.net membership and
I have a web-application which uses hibernate and for some reason every thread (httprequest
I have a web application which uses membership and profiles. I successfully used the
I have a java web application which uses spring webflow as framework. I have
I have an existing web application which uses window.showmodaldialog() to show certain forms and
I have created ASP.net Web application which uses Crystal Report to show reports. Now
I have a web application which provides Excel files via IE 7. It requests
We have the usual web.xml for our web application which includes some jsp and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.