💾 Archived View for bbs.geminispace.org › u › MrSVCD › 14641 captured on 2024-08-18 at 22:55:04. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-08-18)
-=-=-=-=-=-=-
Re: "How do I use gophers:// on Lagrange?"
Is that gopher with tls?
Feb 03 · 6 months ago
🚀 zorg [OP] · 2024-02-04 at 00:08:
@MrSVCD Yes. Here's an example gophers server:
@MrSVCD Yes. Here's an example gophers server:
---------------------------------- FILE: s8 ------------------------------------------ #!/bin/bash #To use, name this file s8 and make it executable with chmod +x s8, then type: ncat --ssl -l -k -p 7000 -c "./s8" #You can connect to it with: ncat --ssl localhost 7000 #or by using curl --insecure gophers://localhost:7000/ if your curl supports gophers. Use --insecure because it's a self-signed certificate. read userInput userInput=$(echo "$userInput" | tr -d '[:space:]') if [ "${userInput:0:1}" == "/" ]; then userInput="${userInput:1}" fi if [ "$userInput" == "file1.txt" ]; then echo "This is file1.txt" elif [ "$userInput" == "file2.txt" ]; then echo "This is file2.txt" else echo -e "iMain menu 0 0 0\r\n" echo -e "0File1 file1.txt localhost 7000\r\n" echo -e "0File2 file2.txt localhost 7000\r\n" echo . fi ---------------------------------- END FILE ------------------------------------------ ---------------------------------- FILE: disclaimers.txt ----------------------------- THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ---------------------------------- END FILE ------------------------------------------
How do I use gophers:// on Lagrange?