Re: [OT] URL terminators
Re: [OT] URL terminators
- Subject: Re: [OT] URL terminators
- From: JJ <email@hidden>
- Date: Tue, 09 Jul 2002 10:29:31 +0200
>
Is there somewhere I can go to read about what characters are valid for http
>
URLs. and in particular which characters would indicate that an http URL has
>
terminated, in HTML source code? E.g., " ", "<BR>", ">" are ones I know
>
about about, optionally preceded by (return). I'd guess that (tab) would be
>
another, but maybe not. I think there's another way of indicating (space),
>
when there at=re several spaces, but I forget what it is.
>
>
I'm having a problem in a script, using a known URL as an AppleScript text
>
item delimiter. It gives a "false positive" when the URL in question is the
>
first part of a longer URL, so I want to be able to specify that the
>
character(s) following it must be one of the complete set of possibilities
>
indicating that the URL is not continuing but has terminated.
>
>
If anyone knows this set, or can send me to somewhere I can read up on it, I
>
would appreciate it. Thanks in advance.
>
>
--
>
Paul Berkowitz
I picked up this somewhere at ADC (about urls):
[quote]
Illegal characters are hexadecimal values in ranging from 01 to 1F, from 80
to FF, and 7F, as well as the following characters:
< > " # { } | \ ^ ~ [ ]
[end quote]
But you should exclude special constructors, such as "#" for anchors or "&,
?, =, $" which are special markers, too.
As long as I'm not an authority, I feel that in a weel-formed html doc, a
url should "end" with quote ("), space ( ) or plus-than (>). And,
optionally, tab or cr-lf.
This is not definitive, by the fact that a guy can write:
http://www.x.com/ file.html
when he wants point to:
http://www.x.com/ file.html
So, this is a relative question, because most of browsers will decode
automatically character code 20 (space) & vice-versa.
But I'd try with quote, space, plus-than, tab, cr & lf.
JJ
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.