-- Leo's gemini proxy

-- Connecting to spartan.mozz.us:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; lang=en

Spartan Protocol Examples


Download a file


Client  : example.com /files/lotr.txt 0
Server  : 2 text/plain; charset=utf-8
          In a hole in the ground there lived a hobbit...

Post to a message board


Client  : example.com /guestbook/submit 12
          Hello world!
Server  : 2 text/gemini
          Your message has been submitted!

Upload a binary file


Client  : example.com /upload/africa.mp3 3145728
          <binary data stream...>
Server  : 2 text/gemini
          Your file has been uploaded!

Return a server redirect


Client  : example.com /old_location/ 0
Server  : 3 /new_location/

Return an error message


Client  : example.com /files/meaning_of_life.txt 0
Server  : 4 File "/files/meaning_of_life.txt" not found

-- Response ended

-- Page fetched on Fri May 3 09:30:56 2024