[Info-vax] HTTP and HTML File Upload Basics
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Fri Oct 23 08:24:43 EDT 2020
On 2020-10-22, Jan-Erik Söderholm <jan-erik.soderholm at telia.com> wrote:
> Den 2020-10-22 kl. 19:43, skrev Simon Clubley:
>> On 2020-10-22, Phillip Helbig (undress to reply) <helbig at asclothestro.multivax.de> wrote:
>>>
>>> What I need now is a procedure to replace DCL_ENV_RM.COM which would
>>> copy the file specified in WWW_FLD_DATAFILE to a directory (could be
>>> hard-coded) on the machine where the server is running. It would be
>>> sufficient if it properly handles just normal text files (even just
>>> 7-bit printable ASCII would be enough).
>>>
>>> Any ideas?
>>>
>>> Many web sites allow one to browse a list of files on a local disk
>>> accessible to the web browser and upload one or more, so this isn't
>>> something really bizarre. My guess is that the OSU server would support
>>> it. The question is whether it can be done without having to install
>>> PHP or whatever. With regard to the scripting language, is there any
>>> reason why DCL shouldn't work?
>>>
>>
>> DCL will need access to the POST data, which is where you can find the
>> contents of the file.
>>
>> Since I have never been insane enough to directly connect DCL to a
>> public facing URL...
>
> I cannot remember any talks about any "public facing URL" here.
>
Webservers are usually used in a public facing way and which is how
I used them on VMS.
However, the last time I ran a webserver on VMS was 15 years ago and
even then I was skittish about doing that.
I also thought that Phillip was presenting various services on his
cluster to the outside world, at least that's what he has implied
with various questions he has asked here.
>> I have never done this so I don't know what
>> information is made available to the command procedure...
>
> As far as I remember from OSU (it must have been 15-20 years since
> I switch to the much more capable and up-to-date WASD) there is a
> DCL-CGI interface so the OSU server sets up some symbols for you
> that helps.
>
> WASD has similar processing help, of course. And probably with more
> functionallity.
>
Does it write the file data to a temporary file ? DCL symbols are
not capable of holding the contents of a file unless it's extremely
small.
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
More information about the Info-vax
mailing list