On 2012-04-18 06:04, Johnny Billquist wrote:
On 2012-04-15 04:49, Oleg Safiullin wrote:
Hmm, putting it all in some file, that can be read?
You can create a virtual terminal for CGI task and pass data through
terminal I/O :)
Oh well, another wasted night and I now have a rough CGI interface to my
web server...
Anyone curious should just ask me how to do things for now. It's not at
all difficult, but it's also not properly finished yet. But there is a
page linked from the home page on madame which have dynamic content.
And after a bunch of additional wasted hours, I now have working CGI using both GET and POST for RSX.
It's pretty simply, really. The best example is in MIM::US:[BQT]PUBLIC.HTM. Notice lines that have targets starting with CGI:
Those give programs that will be run. The program will be run logged in to a virtual terminal, and logical names will be set up for various pieces of information.
The program is expected to output lines that are to be in the header of the response first, followed by an empty line, and after that it's all HTML.
With a GET, the arguments will be in an logical name.
With a POST, the values will be fed to the input of the CGI program. One line at a time, where each line is defined as the splitting point by the '&' character. When all input data have been processed, you get an EOF, and then you start outputting data as above.
Two short examples:
http://madame.update.uu.se/~bqt/test1 (uses GET)
http://madame.update.uu.se/~bqt/test2 (uses POST)
The actual programs run are MIM::US:[BQT]TESTF1.CMD and TESTF2.CMD, which are both just IND programs. Really simple. You can, of course, write your programs in any language you like.
Also, at this writing, the following logical names are defined:
HTTP_CONTENT
HTTP_HOST
HTTP_METHOD
HTTP_REFERER
HTTP_UAG
HTTP_URI
REMOTE_ADDR
REMOTE_PORT
Try the test programs, look at the sources, and play around. Bug reports are as always welcome.
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
On 2012-04-15 04:49, Oleg Safiullin wrote:
Hmm, putting it all in some file, that can be read?
You can create a virtual terminal for CGI task and pass data through
terminal I/O :)
Oh well, another wasted night and I now have a rough CGI interface to my web server...
Anyone curious should just ask me how to do things for now. It's not at all difficult, but it's also not properly finished yet. But there is a page linked from the home page on madame which have dynamic content.
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
I know now!
Thanks for bursting the bubble on the myth!
Sent from my iPad
On 17 Apr 2012, at 18:50, Johnny Billquist <bqt at softjar.se> wrote:
But I hope everyone knows that the slogan is an urban myth...
There was a slogan, but it was actually "Nothing sucks like an Electrolux".
Someone got creative since both VAX and Electrolux made vacuum cleaners, and now we had the VAX computer - it was just a small change to the slogan...
Johnny
On 2012-04-17 19.40, Paul_Koning at Dell.com wrote:
I remember that those pictures showed up at DEC within days of the VAX 11/780 announcement...
paul
-----Original Message-----
From: owner-hecnet at Update.UU.SE [mailto:owner-hecnet at Update.UU.SE] On Behalf Of Dave McGuire
Sent: Tuesday, April 17, 2012 1:39 PM
To: hecnet at Update.UU.SE
Subject: Re: [HECnet] Nothing sucks like a VAX...
On 04/17/2012 12:59 PM, Sampsa Laine wrote:
My father just bought this, found it amusing...
ROFL!!
But I hope everyone knows that the slogan is an urban myth...
There was a slogan, but it was actually "Nothing sucks like an Electrolux".
Someone got creative since both VAX and Electrolux made vacuum cleaners, and now we had the VAX computer - it was just a small change to the slogan...
Johnny
On 2012-04-17 19.40, Paul_Koning at Dell.com wrote:
I remember that those pictures showed up at DEC within days of the VAX 11/780 announcement...
paul
-----Original Message-----
From: owner-hecnet at Update.UU.SE [mailto:owner-hecnet at Update.UU.SE] On Behalf Of Dave McGuire
Sent: Tuesday, April 17, 2012 1:39 PM
To: hecnet at Update.UU.SE
Subject: Re: [HECnet] Nothing sucks like a VAX...
On 04/17/2012 12:59 PM, Sampsa Laine wrote:
My father just bought this, found it amusing...
ROFL!!
I remember that those pictures showed up at DEC within days of the VAX 11/780 announcement...
paul
-----Original Message-----
From: owner-hecnet at Update.UU.SE [mailto:owner-hecnet at Update.UU.SE] On Behalf Of Dave McGuire
Sent: Tuesday, April 17, 2012 1:39 PM
To: hecnet at Update.UU.SE
Subject: Re: [HECnet] Nothing sucks like a VAX...
On 04/17/2012 12:59 PM, Sampsa Laine wrote:
My father just bought this, found it amusing...
ROFL!!
--
Dave McGuire, AK4HZ
New Kensington, PA
Sampsa Laine wrote:
My father just bought this, found it amusing...
Sampsa
------------------------------------------------------------------------
http://pdp-11.org.ru/~form/files/pics/vax.jpg
;)
On 2012-04-15 04:49, Oleg Safiullin wrote:
Hmm, putting it all in some file, that can be read?
You can create a virtual terminal for CGI task and pass data through
terminal I/O :)
I just remembered the biggest objection to this...
If/when I implement the POST operation, I would expect the data sent by the POST to come through the normal input channel. The header fields from the request needs to be passed somehow out of band between the server and the CGI program. Hmm, maybe I can implement some IPC for this, and have the CGI program able to query the server for interesting parameters... Another set of functions in a library... The only problem being that IND would need native functions for it. But then again, I just realized that IND poses another problem as well, since no MCR commands can be done from a spawned process on a VT: normally, as that VT: is not logged in... Hmm, but if I do a login, then I can also setup logical names for that terminal... Hmm, seems, in a way, perhaps a better solution.
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
On 2012-04-16 00:15, Pontus wrote:
On 04/15/2012 11:47 PM, Johnny Billquist wrote:
By the way, if people want to experiment with their own web pages on
MIM, it is now possible.
See MIM::LB:[HTTPD]HTTPD.DOC for an explanation.
Cool!
http://madame.update.uu.se/~pihlgren
Nice! :-)
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol