Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Just think of a computer as hardware you can program." -- Nigel de la Tierre


devel / comp.sys.acorn.apps / Re: !Cat 0.29 released

SubjectAuthor
* Re: !Cat 0.29 releasedMatthew Phillips
`* Re: !Cat 0.29 releasedHarriet Bazley
 `- Re: !Cat 0.29 releasedMatthew Phillips

1
Re: !Cat 0.29 released

<96c15f2c59.Matthew@sinenomine.co.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=539&group=comp.sys.acorn.apps#539

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 14 May 2021 02:29:42 -0500
Date: Fri, 14 May 2021 08:20:23 +0100
From: spam2011m@yahoo.co.uk (Matthew Phillips)
Newsgroups: comp.sys.acorn.apps
Subject: Re: !Cat 0.29 released
Message-ID: <96c15f2c59.Matthew@sinenomine.co.uk>
References: <ap.2cfc5c5914.a701a0a.m.conroy@argonet.co.uk> <2ffc391559.harriet@bazleyfamily.co.uk>
<4846aa05-01c0-42fc-9e18-502fd678d4a5n@googlegroups.com> <51d71959-ab24-41c6-8986-68d2e497d0e2n@googlegroups.com>
<ee243169-b741-4827-a17f-0ecb7d91313bn@googlegroups.com> <mpro.qqt2gt01jhvop025p.news@stevefryatt.org.uk>
<a77375ad-5212-40f1-9f8c-724049330348n@googlegroups.com> <s43s9b$v08$1@dont-email.me> <591654001fcvjazz@waitrose.com>
<59165610b9UCEbin@tiscali.co.uk> <59168582a5cvjazz@waitrose.com> <7a1bcd3c-3b7f-481f-a1a2-d9cb5bec8387n@googlegroups.com>
User-Agent: Messenger-Pro/8.04 (MsgServe/8.04S) (RISC-OS/5.16) NewsHound/v1.50-32
Lines: 52
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-o8dj4+Ve2Oc7YIY75JgYtTekF0DmYUm+NEg90oI9TjZ7bKSFKXgkgHGLXfErkQHYwaRA7LvZxSYg+p4!AhgqlNl84joq8760k/IJRF0nAOO/PX3VM6uCDj54VzF+btlVG7YpOVIgbo3wL4N0hRl5cwF9VnFY!yKzMMaJN
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3721
 by: Matthew Phillips - Fri, 14 May 2021 07:20 UTC

In message <7a1bcd3c-3b7f-481f-a1a2-d9cb5bec8387n@googlegroups.com>
on 22 Apr 2021 svrsig wrote:

> So if I add a short BASIC Programme to the !run files in my applications:
> 10 : P=OPENUP("Boot:Choices.Default.Internet.Files.MimeMap")
> 20 : IF P=0 THEN P=OPENUP("Boot:Resources.!Internet.Files.MimeMap")
> 30 : SYS "MimeMap_Translate","application/x-zip-compressed" TO roft%
> 40 : IF P<>0 THEN
> 50 : IF roft%=&FFD THEN
> 60 : PTR#P=EXT#P
> 70 : BPUT#P,"application/x-zip-compressed Zip A91"+CHR$13
> 80 : ENDIF
> 81 : CLOSE#P
> 82 : ENDIF
> 83 : OSCLI("ReadMimeMap")
> 84 : END
>
> this will correct the user's MimeMap file. Not quite sure about the syntax
> of MimeMap_Translate as it is not in the PRM nor on the ROOL web site.

I think there are various things wrong with that approach. I suspect the
user's choices and internet files settings should not be accessed just using
"Boot:" as there are system variables specifically designed to point to those
areas.

The MimeMap_Translate call needs correcting to:

SYS"MimeMap_Translate",2,"application/x-zip-compressed",0 TO ,,,roft%

I'm also not sure if it's appropriate to determine whether to add another
line like this. Your code does not distinguish between the MIME type being
mapped to FFD as a result of the */* catch-all line, and being explicitly
mapped by the user to FFD. What if the user wants to map this type to FFD?

The advice from ROOL talked about scanning the file, not using
MimeMap_Translate to determine whether to add the entry.

I think there are a few pitfalls here that need further consideration.

Going back upthread to your original problem, in investigating why the file
downloads as different filetypes on different computers, the missing piece of
the puzzle is what the web server is declaring the file to be in the HTTP
header. That should determine which file type is mapped to in NetSurf, not
the extension of the filename.

You need to examine the headers that the server is giving to the browser (the
developer tools in most modern browsers will help with this). It could be
that your web server needs reconfiguring as well.

--
Matthew Phillips
Durham

Re: !Cat 0.29 released

<1003662c59.harriet@bazleyfamily.co.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=540&group=comp.sys.acorn.apps#540

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: harriet@bazleyfamily.co.uk (Harriet Bazley)
Newsgroups: comp.sys.acorn.apps
Subject: Re: !Cat 0.29 released
Date: Fri, 14 May 2021 09:28:43 +0100
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <1003662c59.harriet@bazleyfamily.co.uk>
References: <ap.2cfc5c5914.a701a0a.m.conroy@argonet.co.uk> <2ffc391559.harriet@bazleyfamily.co.uk>
<4846aa05-01c0-42fc-9e18-502fd678d4a5n@googlegroups.com> <51d71959-ab24-41c6-8986-68d2e497d0e2n@googlegroups.com>
<ee243169-b741-4827-a17f-0ecb7d91313bn@googlegroups.com> <mpro.qqt2gt01jhvop025p.news@stevefryatt.org.uk>
<a77375ad-5212-40f1-9f8c-724049330348n@googlegroups.com> <s43s9b$v08$1@dont-email.me> <591654001fcvjazz@waitrose.com>
<59165610b9UCEbin@tiscali.co.uk> <59168582a5cvjazz@waitrose.com> <7a1bcd3c-3b7f-481f-a1a2-d9cb5bec8387n@googlegroups.com>
<96c15f2c59.Matthew@sinenomine.co.uk>
Injection-Info: reader02.eternal-september.org; posting-host="5d27f923e994d269e4dad4c52bea4f82";
logging-data="18321"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9a9ViGVkDclWxbHcm4zx4SzDfEw0lFbw="
User-Agent: Messenger-Pro/8.04 (MsgServe/8.04) (RISC-OS/5.27) NewsHound/v1.53-32 RC1
Cancel-Lock: sha1:yZKhO5s8IKrcr+NWO/4wTR2HRgI=
X-Clacks-Overhead: GNU Terry Pratchett
 by: Harriet Bazley - Fri, 14 May 2021 08:28 UTC

On 14 May 2021 as I do recall,
Matthew Phillips wrote:

[snip]

> Going back upthread to your original problem, in investigating why the file
> downloads as different filetypes on different computers, the missing piece of
> the puzzle is what the web server is declaring the file to be in the HTTP
> header. That should determine which file type is mapped to in NetSurf, not
> the extension of the filename.
>
> You need to examine the headers that the server is giving to the browser (the
> developer tools in most modern browsers will help with this). It could be
> that your web server needs reconfiguring as well.
>
HTTP/1.1 200 OK
Content-Type: application/x-zip-compressed
Last-Modified: Wed, 31 Mar 2021 07:19:43 GMT
Accept-Ranges: bytes
ETag: "f994ed38fe25d71:0"
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET
Date: Fri, 14 May 2021 08:25:33 GMT
Content-Length: 1166853

Which, as said above in the thread, is causing problems in that
"application/x-zip-compressed" is not present in the MimeMap of those
downloading it (unless they edit their MimeMap files).

--
Harriet Bazley == Loyaulte me lie ==

Cleanliness is next to impossible.

Re: !Cat 0.29 released

<495fab2c59.Matthew@sinenomine.co.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=541&group=comp.sys.acorn.apps#541

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 14 May 2021 16:06:02 -0500
Date: Fri, 14 May 2021 22:06:18 +0100
From: spam2011m@yahoo.co.uk (Matthew Phillips)
Newsgroups: comp.sys.acorn.apps
Subject: Re: !Cat 0.29 released
Message-ID: <495fab2c59.Matthew@sinenomine.co.uk>
References: <ap.2cfc5c5914.a701a0a.m.conroy@argonet.co.uk> <2ffc391559.harriet@bazleyfamily.co.uk>
<4846aa05-01c0-42fc-9e18-502fd678d4a5n@googlegroups.com> <51d71959-ab24-41c6-8986-68d2e497d0e2n@googlegroups.com>
<ee243169-b741-4827-a17f-0ecb7d91313bn@googlegroups.com> <mpro.qqt2gt01jhvop025p.news@stevefryatt.org.uk>
<a77375ad-5212-40f1-9f8c-724049330348n@googlegroups.com> <s43s9b$v08$1@dont-email.me> <591654001fcvjazz@waitrose.com>
<59165610b9UCEbin@tiscali.co.uk> <59168582a5cvjazz@waitrose.com> <7a1bcd3c-3b7f-481f-a1a2-d9cb5bec8387n@googlegroups.com>
<96c15f2c59.Matthew@sinenomine.co.uk> <1003662c59.harriet@bazleyfamily.co.uk>
User-Agent: Messenger-Pro/8.04 (MsgServe/8.04S) (RISC-OS/5.16) NewsHound/v1.50-32
Lines: 45
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-k1SihqQPuppAJOcYkAB4bg6enevNTLxpxKyiZmaHgcgKjKe+tdnzunicbvvzthvgzmZ754bC4TK3JVa!GgkXlEGoIDv6EYYZnbqzYmEbgyIZ618r1luCjdPTjnTfKw7/Mv9XVQq52CJwubJWKVu5L89fllg6!4CCAYkMr
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3221
 by: Matthew Phillips - Fri, 14 May 2021 21:06 UTC

In message <1003662c59.harriet@bazleyfamily.co.uk>
on 14 May 2021 Harriet Bazley wrote:

> On 14 May 2021 as I do recall,
> Matthew Phillips wrote:
>
>
> [snip]
>
>
> > Going back upthread to your original problem, in investigating why the file
> > downloads as different filetypes on different computers, the missing piece of
> > the puzzle is what the web server is declaring the file to be in the HTTP
> > header. That should determine which file type is mapped to in NetSurf, not
> > the extension of the filename.
> >
> > You need to examine the headers that the server is giving to the browser (the
> > developer tools in most modern browsers will help with this). It could be
> > that your web server needs reconfiguring as well.
> >
> HTTP/1.1 200 OK
> Content-Type: application/x-zip-compressed
> Last-Modified: Wed, 31 Mar 2021 07:19:43 GMT
> Accept-Ranges: bytes
> ETag: "f994ed38fe25d71:0"
> Server: Microsoft-IIS/10.0
> X-Powered-By: ASP.NET
> Date: Fri, 14 May 2021 08:25:33 GMT
> Content-Length: 1166853
>
> Which, as said above in the thread, is causing problems in that
> "application/x-zip-compressed" is not present in the MimeMap of those
> downloading it (unless they edit their MimeMap files).

Sorry - I missed that. I realise now that I had read all the parent messages
but not some of the other branches.

There can be a lot of variation in MIME types. Those with an "x-" in are
unregistered, and so will usually be replaced with a more appropriate
registered type at some stage. It is disappointing that Microsoft's IIS web
server is using such an outdated MIME type.

--
Matthew Phillips
Durham

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor