4 Invalid request
So I read the Spartan spec and it says:
"A spartan request is a single ASCII-encoded request line followed by an optional data block.
If I open a tcp connection to mozz.us:300 with nc and send "mozz.us / 0", it does respond with a text/gemini document. But I noticed something; if I open a tcp connection to gmi.noulin.net:300 and send "gmi.noulin.net / 0", it responds with the title of this post. But at the same time i can type spartan://gmi.noulin.net into Lagrange and it loads just fine.
Does anyone know why this is? Did I miss something?
2025-01-27 ยท 1 year ago
2 Comments โ
๐ฆ zzo38 ยท 2025-01-27 at 19:30:
The gmi.noulin.net server requires a carriage return before the line feed; some others servers might not require a carriage return. If you include a carriage return then it works.
๐ Remy ยท 2025-01-28 at 06:57:
The source code for the server at gmi.noulin.net is there:
โ gmi.noulin.net/gitRepositories/spartserv/file/spartserv.c.gmi