Open rawnix-org opened 3 years ago
I agree. The implementation would be as follows:
Find the domain name in the URL, and connect to it on port 1965, using TLS, and enable SNI. (Everything following is encrypted)
Transmit the entire URL (including gemini://
and the domain name) followed by a carriage return and line feed.
The first line of the response is the status line; the first character of that line is a digit indicating the status (where 2
means OK). The rest of the lines after the first line is the contents of the requested file.
Add support for twtxt files on gemini space. (gemini://)
Shouldn't be too complicated to add.