On 17 Sep 98, at 12:30, David Mullins wrote:

> Thanks Ivan, and others

> >I think the answer is to check spaces.
> >A valid URL start with http:// and end with a space or any illegal
> >URL char. Reasonable???

> I remember seeing a random character after each URL address from the sample
> file I checked, so I ignored the rule <space> after URL first.   Well after
> checking the Sample file over again this random character only appears in
> very few cases and all other times the URL obeys the rule of <space> after
> address.  Probable  cause to my problem was that when certain files were
> joined together they do not put a <space> at top of each file and hence the
> continous string would join a valid URL with some other text and no <space>
> to identify its end.

> So, solution to my problem is to keep adding a <space> at top of each file
> so if it happens to be the end of a URL address from the previous file,  a
> <space> is included after URL address when the files are joined.  (problem
> solved)

I don't know exactly how are you doing this thing.
If you're joining 2 files it's very easy to add a space at the top of 
them without extra work (disk access etc...) but only if you use 
clever tools.
Since you can't be sure of the cleverness of the programmers just 
look for the http:// prefix... the start of an URL cant be the 
continuation of another (in many cases... not all eg. if you pass 
another url to a CGI as an argument to the CGI call)

If you don't really need to join files well you don't need to add 
spaces of course...
Anyway I suppose the random char is not a valid url char. If the 
random char was a valid url char nobody could understand where 
the URL finishes (with as usual exception... maybe it is a sort of 
DB file, or Pascal String where the first ASCII code before the URL 
string is its lenght)
-------------------------------------------
Ivan Sergio Borgonovo [EMAIL PROTECTED]
Webmaster Gorilla Bookstore http://www.gorilla.it
Tel. +39 2 3311105/34530455 Fax. +39 2 34531591
Via Mac Mahon 9, Milano, Italy
-------------------------------------------

____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to