473,396 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Trunkated URLs

Ok guys, I'm stumped.

I have an ASP page that converts the asp code in a form to html. It
then writes a VERY LONG URL and sends it to an email. I have it set
up to write to a link (so that the email isn't like a page long of
just a link) However, when it writes the URL, it trunkates it to a
certain length. Anyone know if there is a limit to the length of a
URL in an <a href.../a> tag?
Jul 20 '05 #1
2 2828
Crystal wrote:
I have an ASP page that converts the asp code in a form to html. It
then writes a VERY LONG URL and sends it to an email. I have it set
up to write to a link (so that the email isn't like a page long of
just a link) However, when it writes the URL, it trunkates it to a
certain length. Anyone know if there is a limit to the length of a
URL in an <a href.../a> tag?


It varies depending on the user agent, I don't think the specification
imposes any limit. Lots can't go above around 255 characters.

--
David Dorward http://david.us-lot.org/
Redesign in progress: http://stone.thecoreworlds.net/
Microsoft announces IE is dead (so upgrade):
http://minutillo.com/steve/weblog/20...ces-ie-is-dead
Jul 20 '05 #2
Crystal wrote:
Ok guys, I'm stumped.

I have an ASP page that converts the asp code in a form to html. It
then writes a VERY LONG URL and sends it to an email.
Okay.

I have it set up to write to a link (so that the email isn't like a page
long of just a link)
I'm not sure what you mean by this.

However, when it writes the URL, it trunkates it to a
certain length. Anyone know if there is a limit to the length of a
URL in an <a href.../a> tag?


In terms of the URL, no, but you may wish to avoid long URLs anyway:

<URL:http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2.1>

It sounds like you don't have a problem with the URL per se, but rather a
problem with writing long strings into the mail (unless you have an unusual
setup, your mailing component won't try and parse URLs).

Firstly, depending on how you are sending the email (CDONTS?), word-wrapping
might occur. I can't remember if or how that can be disabled, check your
manual.

From that point, you have to deal with people who forward mails around.
Depending on the application, this may or may not be a problem. Use the
following syntax to get around it:

<URL:http://www.example.com/>

(I believe some clients prefer it with a space after the first colon, some
clients prefer it without, and some clients ignore it completely).

I think the problem is solved most easily by just creating a shorter link.
Can you put a redirector in the root directory of your website or
something?

--
Jim Dabell

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: phpkid | last post by:
Howdy I've been given conflicting answers about search engines picking up urls like: http://mysite.com/index.php?var1=1&var2=2&var3=3 Do search engines pick up these urls? I've been considering...
26
by: Howard Brazee | last post by:
I would like to click on a URL of a html document that will open several URLs at once for me. Does someone have an example of a html document that will do this?
1
by: DM | last post by:
I'm working on a site with more than 1700 HTML files. We'll be moving files around on this site a lot because we're reorganizing it. I'm thinking of writing a script that will convert all URLs in...
7
by: AES | last post by:
Encountered a URL containing a comma the other day -- the first time I've ever noticed that, so far as I can recall. It worked fine, however, and I gather commas are legal in URLs. Out of...
10
by: jflash | last post by:
Hello all, I feel dumb having to ask this question in the first place, but I just can not figure it out. I am wanting to set my site up using dynamic urls (I'm assuming that's what they're...
9
by: Salve =?iso-8859-1?Q?H=E5kedal?= | last post by:
What is the best regular expression for finding urls in plain text files? (By urls I mean http://www.something.com, but also www.something.com, or salve@somewhere.com) Salve
2
by: Simon Wigzell | last post by:
I have inherited a database driven website that comes with a table of image links. The images are scattered all of the internet and there are thousands of them. I would like to write an asp script...
3
by: WebCM | last post by:
How to apply nice URL-s into CMS? 1. Should we use nice urls for every page? 2. Do we need to put a FULL path into <a href="">? 3. What is faster and better? a) 10 rules in .htaccess...
4
by: Guy Macon | last post by:
As a personal learning experience with limited practical use, I have been doing some experiments with using .htaccess to redirect mis-typed URLs to a preferred canonical form. I have set up a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.