[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [gopher] [GOGOPH] Starting crawler



I implemented this but it doesn't works !! :/

you can check it, it's on-line...

:/

2012/5/3 Cameron Kaiser <spectre@floodgap.com>
> I don't know how to implement this hack... ^^
> I'm staying close to rfc 1436.

This is the disambiguator in Bucktooth:

       ($orq, $gplus) = split($TAB, $grequest, 2);
       $orq =~ s/%3[fF]/\?/g;
       if (length($gplus) && $gplus !~ /^[\$\+\!]/) {
               # not a real gopher plus request
               $orq = $grequest;
               undef $gplus;
       }
       if ($gplus eq '$') { # this is for UMN gopher
               $j = <<"EOF";
+-1
+INFO: 1Main menu (non-gopher+)         $MYHOST $MYPORT
+ADMIN:
 Admin: Server Administrator
 Server: $SERVER
+VIEWS:
 application/gopher+-menu: <512b>
+ABSTRACT:
 This gopher supports standard gopher access only. Use this
 kludge to disable gopher+ client requests by your client.
.
EOF
               $j =~ s/\n/\r\n/sg;
               print STDOUT $j;
               &log("\"$orq\" <$gplus> [300 \"\" forced g+ redirect]");
               exit;
       }

$grequest is a line read from stdin. It's a pretty reliable hack and has been
in Bucktooth since the very beginning.

--
------------------------------------ personal: http://www.cameronkaiser.com/ --
 Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckaiser@floodgap.com
-- "Now you're playing with POWER!" -------------------------------------------

_______________________________________________
Gopher-Project mailing list
Gopher-Project@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/gopher-project



--
Damien CAROL
gopher://dams.zapto.org/1/
_______________________________________________
Gopher-Project mailing list
Gopher-Project@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/gopher-project

Reply to: