Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 04:11 PM
Crystal
Guest
 
Posts: n/a
Default 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?
  #2  
Old July 20th, 2005, 04:11 PM
David Dorward
Guest
 
Posts: n/a
Default Re: Trunkated URLs

Crystal wrote:[color=blue]
> 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?[/color]

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
  #3  
Old July 20th, 2005, 04:11 PM
Jim Dabell
Guest
 
Posts: n/a
Default Re: Trunkated URLs

Crystal wrote:
[color=blue]
> 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.[/color]

Okay.

[color=blue]
> I have it set up to write to a link (so that the email isn't like a page
> long of just a link)[/color]

I'm not sure what you mean by this.

[color=blue]
> 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?[/color]

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

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles