472,958 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 2821
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
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.