|
From: feenberg on 2 Jul 2008 13:22 I have been working on converting a local fortran 77 program to run as a cgi program under the Apache webserver on our FreeBSD machine. No perl and no special libraries are required to do what we need, and the fortran code is compact and straightforward. I have posted some explanation and examples at: http://www.nber.org/sys-admin/fortran-cgi The trick is to use the POST method with MIME type multi-part/form- data so that form data is separated from header information and can be read with either free or fixed fortran reads. Any comments much appreciated. Daniel Feenberg feenberg at nber dot org
From: user1 on 2 Jul 2008 19:47 feenberg wrote: > I have been working on converting a local fortran 77 program to run as > a cgi program under the Apache webserver on our FreeBSD machine. No > perl and no special libraries are required to do what we need, and the > fortran code is compact and straightforward. I have posted some > explanation and examples at: > > http://www.nber.org/sys-admin/fortran-cgi > > The trick is to use the POST method with MIME type multi-part/form- > data so that form data is separated from header information and can be > read with either free or fixed fortran reads. > > Any comments much appreciated. > > Daniel Feenberg > feenberg at nber dot org I presume you have looked into the cgi-src folder contained in the old NCSA HTTPd distribution ? The utilities they have are written in C. Not fortran, but perhaps useful examples to translate or build on.
From: Brian Salter-Duke on 2 Jul 2008 23:27 On Wed, 2 Jul 2008 10:22:23 -0700 (PDT), feenberg <feenberg(a)gmail.com> wrote: > I have been working on converting a local fortran 77 program to run as > a cgi program under the Apache webserver on our FreeBSD machine. No > perl and no special libraries are required to do what we need, and the > fortran code is compact and straightforward. I have posted some > explanation and examples at: > > http://www.nber.org/sys-admin/fortran-cgi > > The trick is to use the POST method with MIME type multi-part/form- > data so that form data is separated from header information and can be > read with either free or fixed fortran reads. > > Any comments much appreciated. > > Daniel Feenberg > feenberg at nber dot org I have been using a fortran library by L. Chiappetta from around 1999. It makes converting a fortran program to be a cgi program quite easy, but I forget where I got it from. Try google. -- Brian Salter-Duke Melbourne, Australia My real address is b_duke(AT)bigpond(DOT)net(DOT)au Use this for reply or followup
From: David Duffy on 3 Jul 2008 21:56 feenberg <feenberg(a)gmail.com> wrote: > I have been working on converting a local fortran 77 program to run as > a cgi program under the Apache webserver on our FreeBSD machine. No > perl and no special libraries are required to do what we need, and the > fortran code is compact and straightforward. I have posted some > explanation and examples at: > http://www.nber.org/sys-admin/fortran-cgi > The trick is to use the POST method with MIME type multi-part/form- > data so that form data is separated from header information and can be > read with either free or fixed fortran reads. You might be interested in my toy application http://www.qimr.edu.au/davidD/Sockets/httpserver.f95 which can extract POST'ed data. It uses a little sockets library (see http://www.qimr.edu.au/davidD/ under "fortransockets" for the details). Cheers, David Duffy. -- | David Duffy (MBBS PhD) ,-_|\ | email: davidD(a)qimr.edu.au ph: INT+61+7+3362-0217 fax: -0101 / * | Epidemiology Unit, Queensland Institute of Medical Research \_,-._/ | 300 Herston Rd, Brisbane, Queensland 4029, Australia GPG 4D0B994A v
|
Pages: 1 Prev: newbie: problem with TRANSPOSE Next: Fortran numerical server using Com server wizard. |