• Common Gateway Interface

    From Baguette@VERT/CAVEBBS to All on Wed Jul 15 03: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 10:09:22 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 12:56:53 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 12:58:11 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 07:35:00 2020
    Baguette wrote to All <=-ãã Ba> In other news, I'm trying to figure out how the /fuck/ to write a CGIã Ba> script for my gopherhole. From the looks of things, I'm going to haveã Ba> 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 15: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 Thu Jul 16 01: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 Thu Jul 16 01: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 <=-ã > ã > Ba> In other news, I'm trying to figure out how the /fuck/ to write a CGIã > Ba> script for my gopherhole. From the looks of things, I'm going to haveã > Ba> 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 07:05:55 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 <=-ã > ã > > Ba> 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 Sat Jul 18 03: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 <=-ã > >ã > > > Ba> 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 11:36:03 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 <=-ã >ã > > > > Ba> In other news, I'm trying to figure out how the /fuck/ toã > > > > Ba> 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 17:39:11 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 09:58:00 2020
    Baguette wrote to Arelor <=-ãã Ba> Re: Re: Common Gateway Interfã Ba> 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 <=-ã > >ã > > > Ba> 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ã >ãã Ba> Alright, I'll give it a try. Been wanting to write a cgi guestbook forã Ba> my gopherhole. Other things, too, but I think a guestbook's a goodã Ba> 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 10:07:00 2020
    Arelor wrote to Digital Man <=-ãã Ar> Re: Re: Common Gateway Interfã Ar> 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ãã Ar> Yes, but the protocol supports queries. Queries were designed forã Ar> searches afaik, but some people use queries for feeding CGI scriptsã Ar> with instructions.ãã Ar> So you could send the script a query with a sentence in it, and theã Ar> 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 Fri Jul 24 03:46:45 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 23:01:00 2020
    Re: Re: Common Gateway Interfã By: calcmandan to Baguette on Sun Jul 19 2020 09:58 amãã > -=> Baguette wrote to Arelor <=-ã > ã > Ba> Re: Re: Common Gateway Interfã > Ba> 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 <=-ã > > >ã > > > > Ba> 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ã > >ã > ã > Ba> Alright, I'll give it a try. Been wanting to write a cgi guestbook forã > Ba> my gopherhole. Other things, too, but I think a guestbook's a goodã > Ba> 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 20:29:00 2020
    Baguette wrote to calcmandan <=-ãã Ba> Re: Re: Common Gateway Interfã Ba> By: calcmandan to Baguette on Sun Jul 19 2020 09:58 amãã > -=> Baguette wrote to Arelor <=-ã >ã > Ba> Re: Re: Common Gateway Interfã > Ba> 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 <=-ã > > >ã > > > > Ba> 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ã > >ã >ã > Ba> Alright, I'll give it a try. Been wanting to write a cgi guestbook forã > Ba> my gopherhole. Other things, too, but I think a guestbook's a goodã > Ba> 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ãã Ba> If I figure it out, I'll let you know. Probably put the script itselfã Ba> 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ã