• Common Gateway Interface

    From Baguette@VERT/CAVEBBS to All on Wednesday, July 15, 2020 02:03:00
    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.

    ===============================
    [email protected]
    https://hbaguette.neocities.org


    ---
    � Synchronet � The Cave BBS - Since 1992 - cavebbs.homeip.net
  • From Nelgin@VERT/EOTLBBS to Baguette on Wednesday, July 15, 2020 09:09:22
    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.

    ===============================
    [email protected]
    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 Wednesday, July 15, 2020 11:56:53
    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.

    ===============================
    [email protected]
    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 Wednesday, July 15, 2020 11:58:11
    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.

    ===============================
    [email protected]
    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 Wednesday, July 15, 2020 06:35:00
    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 Wednesday, July 15, 2020 14:31:00
    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.

    ===============================
    [email protected]
    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?

    ===============================
    [email protected]
    https://hbaguette.neocities.org


    ---
    � Synchronet � The Cave BBS - Since 1992 - cavebbs.homeip.net
  • From Baguette@VERT/CAVEBBS to Arelor on Thursday, July 16, 2020 00:15:00
    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.

    ===============================
    [email protected]
    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.

    ===============================
    [email protected]
    https://hbaguette.neocities.org


    ---
    � Synchronet � The Cave BBS - Since 1992 - cavebbs.homeip.net
  • From Baguette@VERT/CAVEBBS to poindexter FORTRAN on Thursday, July 16, 2020 00:17:00
    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.

    ===============================
    [email protected]
    https://hbaguette.neocities.org


    ---
    � Synchronet � The Cave BBS - Since 1992 - cavebbs.homeip.net
  • From Arelor@VERT/PALANT to Baguette on Thursday, July 16, 2020 06:05:55
    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.

    ===============================
    [email protected]
    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 Saturday, July 18, 2020 02:04:00
    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.

    ===============================
    [email protected]
    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.

    ===============================
    [email protected]
    https://hbaguette.neocities.org


    ---
    � Synchronet � The Cave BBS - Since 1992 - cavebbs.homeip.net
  • From Digital Man@VERT to Baguette on Saturday, July 18, 2020 10:36:03
    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.

    ===============================
    [email protected]
    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 Saturday, July 18, 2020 16:39:11
    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 Sunday, July 19, 2020 08:58:00
    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.

    ===============================
    [email protected]
    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 Sunday, July 19, 2020 09:07:00
    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 Friday, July 24, 2020 02:46:45
    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 Tuesday, July 28, 2020 22:01:00
    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.

    ===============================
    [email protected]
    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.

    ===============================
    [email protected]
    https://hbaguette.neocities.org


    ---
    � Synchronet � The Cave BBS - Since 1992 - cavebbs.homeip.net
  • From calcmandan@VERT/DIGDIST to Baguette on Thursday, July 30, 2020 19:29:00
    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.

    ===============================
    [email protected]
    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