• Common Gateway Interface

    From Baguette@VERT/CAVEBBS to All on Tue Jul 14 23:03:00 2020
    In other news, I'm trying to figure out how the /fuck/ to write a CGI script for my gopherhole. From the looks of things, I'm going to have to learn Perl.

    And then there's the issue that I might not actually have permissions to run CGI scripts on the server I'm using.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org


    ---
    þ Synchronet þ The Cave BBS - Since 1992 - cavebbs.homeip.net
  • From Nelgin@VERT/EOTLBBS to Baguette on Wed Jul 15 06:09:00 2020
    Baguette wrote:
    In other news, I'm trying to figure out how the /fuck/ to write a CGI script for my gopherhole. From the looks of things, I'm going to have to learn Perl.

    And then there's the issue that I might not actually have permissions to run CGI scripts on the server I'm using.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org

    If you don't want to do CGI in perl yo can always use php or pretty much whatever language you like, you can just use one of the former as a wrapper
    and make a system call. Use whatever language you're comfortable with.

    You will need to learn how to properlty form a HTML response, however, and there's plenty of resources on that.

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From Arelor@VERT/PALANT to Baguette on Wed Jul 15 08:56:00 2020
    Re: Common Gateway Interface
    By: Baguette to All on Wed Jul 15 2020 03:03 am

    In other news, I'm trying to figure out how the /fuck/ to write
    CGI script for my gopherhole. From the looks of things, I'm goi
    to have to learn Perl.

    And then there's the issue that I might not actually have
    permissions to run CGI scripts on the server I'm using.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org



    Hi there,

    Which gopher implementation will you be using?

    You don't really need perl. It is just that Perl is the most
    convenient language for such thing (at least for most tasks I have
    had to take myself). You can also use regular sh if you feel like
    it. Or write your own C monster, in theory.


    --
    gopher://gopher.operationalsecurity.es

    ---
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
  • From Arelor@VERT/PALANT to Nelgin on Wed Jul 15 08:58:00 2020
    Re: Re: Common Gateway Interface
    By: Nelgin to Baguette on Wed Jul 15 2020 10:09 am

    Baguette wrote:
    In other news, I'm trying to figure out how the /fuck/ to wri
    a CGI script for my gopherhole. From the looks of things, I'm
    going to have to learn Perl.

    And then there's the issue that I might not actually have
    permissions to run CGI scripts on the server I'm using.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org

    If you don't want to do CGI in perl yo can always use php or
    pretty much whatever language you like, you can just use one of
    the former as a wrapper
    and make a system call. Use whatever language you're comfortabl
    with.

    You will need to learn how to properlty form a HTML response,
    however, and there's plenty of resources on that.


    For gopher, you are unlikely to need HTML in a gopher response
    since you usually deliver just text or gopher menus :-)

    --
    gopher://gopher.operationalsecurity.es

    ---
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
  • From poindexter FORTRAN@VERT/REALITY to Baguette on Wed Jul 15 03:35:00 2020
    Baguette wrote to All <=-

    In other news, I'm trying to figure out how the /fuck/ to write a CGI script for my gopherhole. From the looks of things, I'm going to have
    to learn Perl.

    What language do you know? Anything that runs on the server should be
    able to be made to run CGI, it's a matter of how efficient it'll be.

    I worked at a company that wrote all of their original CGI in C.



    ... It's all more or less the same.. but it's all different now.
    --- MultiMail/XT v0.52
    þ Synchronet þ realitycheckBBS -- http://realitycheckBBS.org
  • From Baguette@VERT/CAVEBBS to Nelgin on Wed Jul 15 11:31:00 2020
    Re: Re: Common Gateway Interf
    By: Nelgin to Baguette on Wed Jul 15 2020 10:09 am

    Baguette wrote:
    In other news, I'm trying to figure out how the /fuck/ to write a CGI scri for my gopherhole. From the looks of things, I'm going to have to learn Pe

    And then there's the issue that I might not actually have permissions to r CGI scripts on the server I'm using.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org

    If you don't want to do CGI in perl yo can always use php or pretty much whatever language you like, you can just use one of the former as a wrapper and make a system call. Use whatever language you're comfortable with.

    You will need to learn how to properlty form a HTML response, however, and there's plenty of resources on that.


    A HTML response? For Gopher?

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org


    ---
    þ Synchronet þ The Cave BBS - Since 1992 - cavebbs.homeip.net
  • From Baguette@VERT/CAVEBBS to Arelor on Wed Jul 15 21:15:00 2020
    Re: Common Gateway Interface
    By: Arelor to Baguette on Wed Jul 15 2020 12:56 pm

    Re: Common Gateway Interface
    By: Baguette to All on Wed Jul 15 2020 03:03 am

    In other news, I'm trying to figure out how the /fuck/ to write
    CGI script for my gopherhole. From the looks of things, I'm goi
    to have to learn Perl.

    And then there's the issue that I might not actually have
    permissions to run CGI scripts on the server I'm using.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org



    Hi there,

    Which gopher implementation will you be using?

    You don't really need perl. It is just that Perl is the most
    convenient language for such thing (at least for most tasks I have
    had to take myself). You can also use regular sh if you feel like
    it. Or write your own C monster, in theory.


    --
    gopher://gopher.operationalsecurity.es


    Honestly, no idea which implementation, whichever SDF uses. It's still new to me, so...

    And, yeah, I realized I could just use a shell script a little bit after I posted that.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org


    ---
    þ Synchronet þ The Cave BBS - Since 1992 - cavebbs.homeip.net
  • From Baguette@VERT/CAVEBBS to poindexter FORTRAN on Wed Jul 15 21:17:00 2020
    Re: Re: Common Gateway Interf
    By: poindexter FORTRAN to Baguette on Wed Jul 15 2020 07:35 am

    Baguette wrote to All <=-

    In other news, I'm trying to figure out how the /fuck/ to write a CGI script for my gopherhole. From the looks of things, I'm going to have to learn Perl.

    What language do you know? Anything that runs on the server should be
    able to be made to run CGI, it's a matter of how efficient it'll be.

    I worked at a company that wrote all of their original CGI in C.



    ... It's all more or less the same.. but it's all different now.

    Honestly, the language I know /best/ is Python, and even then I'm not that great at it. I've learned other languages in the past, but my memory is terrible (to the point where I've started considering seeing someone about
    it) and I can barely remember most of them.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org


    ---
    þ Synchronet þ The Cave BBS - Since 1992 - cavebbs.homeip.net
  • From Arelor@VERT/PALANT to Baguette on Thu Jul 16 03:05:00 2020
    Re: Re: Common Gateway Interf
    By: Baguette to poindexter FORTRAN on Thu Jul 16 2020 01:17 am

    Re: Re: Common Gateway Interf
    By: poindexter FORTRAN to Baguette on Wed Jul 15 2020 07:35 am

    Baguette wrote to All <=-

    In other news, I'm trying to figure out how the /fuck/ to write a CGI script for my gopherhole. From the looks of things, I'm going to have to learn Perl.

    What language do you know? Anything that runs on the server should be
    able to be made to run CGI, it's a matter of how efficient it'll be.

    I worked at a company that wrote all of their original CGI in C.



    ... It's all more or less the same.. but it's all different now.

    Honestly, the language I know /best/ is Python, and even then I'm not that great at it. I've learned other languages in the past, but my memory is terrible (to the po
    where I've started considering seeing someone about
    it) and I can barely remember most of them.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org



    I think a gopher CGI page would be very doable with Python, so you may as well go with that if you are familiar with it. I just like Perl better for such things, but I
    am a weirdo.

    --
    gopher://gopher.operationalsecurity.es

    ---
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
  • From Baguette@VERT/CAVEBBS to Arelor on Fri Jul 17 23:04:00 2020
    Re: Re: Common Gateway Interf
    By: Arelor to Baguette on Thu Jul 16 2020 07:05 am

    Re: Re: Common Gateway Interf
    By: Baguette to poindexter FORTRAN on Thu Jul 16 2020 01:17 am

    Re: Re: Common Gateway Interf
    By: poindexter FORTRAN to Baguette on Wed Jul 15 2020 07:35 am

    Baguette wrote to All <=-

    In other news, I'm trying to figure out how the /fuck/ to write a

    What language do you know? Anything that runs on the server should be
    able to be made to run CGI, it's a matter of how efficient it'll be.

    I worked at a company that wrote all of their original CGI in C.



    ... It's all more or less the same.. but it's all different now.

    Honestly, the language I know /best/ is Python, and even then I'm not tha where I've started considering seeing someone about
    it) and I can barely remember most of them.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org



    I think a gopher CGI page would be very doable with Python, so you may as we am a weirdo.

    --
    gopher://gopher.operationalsecurity.es


    Alright, I'll give it a try. Been wanting to write a cgi guestbook for my gopherhole. Other things, too, but I think a guestbook's a good place to
    start.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org


    ---
    þ Synchronet þ The Cave BBS - Since 1992 - cavebbs.homeip.net
  • From Digital Man@VERT to Baguette on Sat Jul 18 07:36:00 2020
    Re: Re: Common Gateway Interf
    By: Baguette to Arelor on Sat Jul 18 2020 03:04 am

    Re: Re: Common Gateway Interf
    By: Arelor to Baguette on Thu Jul 16 2020 07:05 am

    Re: Re: Common Gateway Interf
    By: Baguette to poindexter FORTRAN on Thu Jul 16 2020 01:17 am

    Re: Re: Common Gateway Interf
    By: poindexter FORTRAN to Baguette on Wed Jul 15 2020 07:35 am

    Baguette wrote to All <=-

    In other news, I'm trying to figure out how the /fuck/ to write a

    What language do you know? Anything that runs on the server should be
    able to be made to run CGI, it's a matter of how efficient it'll be.

    I worked at a company that wrote all of their original CGI in C.



    ... It's all more or less the same.. but it's all different now.

    Honestly, the language I know /best/ is Python, and even then I'm not tha where I've started considering seeing someone about
    it) and I can barely remember most of them.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org



    I think a gopher CGI page would be very doable with Python, so you may as we am a weirdo.

    --
    gopher://gopher.operationalsecurity.es


    Alright, I'll give it a try. Been wanting to write a cgi guestbook for my gopherhole. Other things, too, but I think a guestbook's a good place to start.

    I thought Gopher was more of a read-only type protocol, no?

    Have you played with modifying Synchronet gopherservice.js?

    digital man

    Sling Blade quote #9:
    Doyle Hargraves: Morris here is a modern-day poet, kinda like in olden times. Norco, CA WX: 80.9øF, 53.0% humidity, 4 mph NE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Arelor@VERT/PALANT to Digital Man on Sat Jul 18 13:39:00 2020
    Re: Re: Common Gateway Interf
    By: Digital Man to Baguette on Sat Jul 18 2020 11:36 am

    I thought Gopher was more of a read-only type protocol, no?

    Have you played with modifying Synchronet gopherservice.js?

    digital man

    Yes, but the protocol supports queries. Queries were designed for searches afaik, but some people use queries for feeding CGI scripts with instructions.

    So you could send the script a query with a sentence in it, and the script could store such sentence in a guest book.

    --
    gopher://gopher.operationalsecurity.es

    ---
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
  • From calcmandan@VERT/DIGDIST to Baguette on Sun Jul 19 05:58:00 2020
    Baguette wrote to Arelor <=-

    Re: Re: Common Gateway Interf
    By: Arelor to Baguette on Thu Jul 16 2020 07:05 am

    Re: Re: Common Gateway Interf
    By: Baguette to poindexter FORTRAN on Thu Jul 16 2020 01:17 am

    Re: Re: Common Gateway Interf
    By: poindexter FORTRAN to Baguette on Wed Jul 15 2020 07:35 am

    Baguette wrote to All <=-

    In other news, I'm trying to figure out how the /fuck/ to write a

    What language do you know? Anything that runs on the server should be
    able to be made to run CGI, it's a matter of how efficient it'll be.

    I worked at a company that wrote all of their original CGI in C.



    ... It's all more or less the same.. but it's all different now.

    Honestly, the language I know /best/ is Python, and even then I'm not tha where I've started considering seeing someone about
    it) and I can barely remember most of them.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org



    I think a gopher CGI page would be very doable with Python, so you may as we am a weirdo.

    --
    gopher://gopher.operationalsecurity.es


    Alright, I'll give it a try. Been wanting to write a cgi guestbook for
    my gopherhole. Other things, too, but I think a guestbook's a good
    place to start.

    Please share your code. I've attempted to get other guestbook code from gopher IRC channels. No one really wants to share and usually I'll receive a response like 'figure it out yourself.'

    I found the gopher community on irc to be nowhere near helpful.

    Daniel Traechin

    ... Visit me at gopher://gcpp.world
    --- MultiMail/Linux v0.49
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From calcmandan@VERT/DIGDIST to Arelor on Sun Jul 19 06:07:00 2020
    Arelor wrote to Digital Man <=-

    Re: Re: Common Gateway Interf
    By: Digital Man to Baguette on Sat Jul 18 2020 11:36 am

    I thought Gopher was more of a read-only type protocol, no?

    Have you played with modifying Synchronet gopherservice.js?

    digital man

    Yes, but the protocol supports queries. Queries were designed for
    searches afaik, but some people use queries for feeding CGI scripts
    with instructions.

    So you could send the script a query with a sentence in it, and the
    script could store such sentence in a guest book.

    All the guestbooks I've signed on gopher holes are typically that. You fill out your message on the 'field' and it submits your text in the page below after the refresh. I've wanted one on my phlog where each entry has a guest book fashioned as a comment section.

    Daniel Traechin

    ... Visit me at gopher://gcpp.world
    --- MultiMail/Linux v0.49
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Nelgin@VERT/EOTLBBS to Arelor on Thu Jul 23 23:46:00 2020
    Arelor wrote:
    For gopher, you are unlikely to need HTML in a gopher response
    since you usually deliver just text or gopher menus :-)

    Umm, true that.

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From Baguette@VERT/CAVEBBS to calcmandan on Tue Jul 28 19:01:00 2020
    Re: Re: Common Gateway Interf
    By: calcmandan to Baguette on Sun Jul 19 2020 09:58 am

    Baguette wrote to Arelor <=-

    Re: Re: Common Gateway Interf
    By: Arelor to Baguette on Thu Jul 16 2020 07:05 am

    Re: Re: Common Gateway Interf
    By: Baguette to poindexter FORTRAN on Thu Jul 16 2020 01:17 am

    Re: Re: Common Gateway Interf
    By: poindexter FORTRAN to Baguette on Wed Jul 15 2020 07:35 am

    Baguette wrote to All <=-

    In other news, I'm trying to figure out how the /fuck/ to writ

    What language do you know? Anything that runs on the server should
    able to be made to run CGI, it's a matter of how efficient it'll b

    I worked at a company that wrote all of their original CGI in C.



    ... It's all more or less the same.. but it's all different now.

    Honestly, the language I know /best/ is Python, and even then I'm not where I've started considering seeing someone about
    it) and I can barely remember most of them.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org



    I think a gopher CGI page would be very doable with Python, so you may as am a weirdo.

    --
    gopher://gopher.operationalsecurity.es


    Alright, I'll give it a try. Been wanting to write a cgi guestbook for my gopherhole. Other things, too, but I think a guestbook's a good place to start.

    Please share your code. I've attempted to get other guestbook code from goph IRC channels. No one really wants to share and usually I'll receive a respon like 'figure it out yourself.'

    I found the gopher community on irc to be nowhere near helpful.

    Daniel Traechin

    ... Visit me at gopher://gcpp.world

    If I figure it out, I'll let you know. Probably put the script itself up on
    my gopherhole for people to download, honestly.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org


    ---
    þ Synchronet þ The Cave BBS - Since 1992 - cavebbs.homeip.net
  • From calcmandan@VERT/DIGDIST to Baguette on Thu Jul 30 16:29:00 2020
    Baguette wrote to calcmandan <=-

    Re: Re: Common Gateway Interf
    By: calcmandan to Baguette on Sun Jul 19 2020 09:58 am

    Baguette wrote to Arelor <=-

    Re: Re: Common Gateway Interf
    By: Arelor to Baguette on Thu Jul 16 2020 07:05 am

    Re: Re: Common Gateway Interf
    By: Baguette to poindexter FORTRAN on Thu Jul 16 2020 01:17 am

    Re: Re: Common Gateway Interf
    By: poindexter FORTRAN to Baguette on Wed Jul 15 2020 07:35 am

    Baguette wrote to All <=-

    In other news, I'm trying to figure out how the /fuck/ to writ

    What language do you know? Anything that runs on the server should
    able to be made to run CGI, it's a matter of how efficient it'll b

    I worked at a company that wrote all of their original CGI in C.



    ... It's all more or less the same.. but it's all different now.

    Honestly, the language I know /best/ is Python, and even then I'm not where I've started considering seeing someone about
    it) and I can barely remember most of them.

    ===============================
    baguette@sdf.org
    https://hbaguette.neocities.org



    I think a gopher CGI page would be very doable with Python, so you may as am a weirdo.

    --
    gopher://gopher.operationalsecurity.es


    Alright, I'll give it a try. Been wanting to write a cgi guestbook for my gopherhole. Other things, too, but I think a guestbook's a good place to start.

    Please share your code. I've attempted to get other guestbook code from goph IRC channels. No one really wants to share and usually I'll receive a respon like 'figure it out yourself.'

    I found the gopher community on irc to be nowhere near helpful.

    Daniel Traechin

    ... Visit me at gopher://gcpp.world

    If I figure it out, I'll let you know. Probably put the script itself
    up on my gopherhole for people to download, honestly.

    If you want a collaborator let me know.

    Daniel Traechin

    ... Visit me at gopher://gcpp.world
    --- MultiMail/Linux v0.49
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com