๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ u โ€บ skyjake โ€บ 11744 captured on 2023-12-28 at 17:16:46. Gemini links have been rewritten to link to archived content

View Raw

More Information

โžก๏ธ Next capture (2024-02-05)

-=-=-=-=-=-=-

Comment by ๐Ÿš€ skyjake

Re: "Sending plain text, would like to send gemtext"

In: s/GmCapsule

Your CGI script should print a Gemini header line as its first line of output.

print("20 text/gemini\r")

๐Ÿš€ skyjake

Nov 15 ยท 6 weeks ago

3 Later Comments โ†“

๐Ÿ•๏ธ Yretek ยท Nov 15 at 15:53:

Brilliant. That did it. Perhaps it could be included in the documentation as an example.

๐Ÿš€ skyjake ยท Nov 15 at 18:07:

Hmm yes, adding an example of printing the meta line in the "CGI programs" section would be a good addition, so there's some concreteness to what is being said there. Thanks for the suggestion.

๐Ÿš€ skyjake ยท Nov 16 at 14:41:

GmCapsule v0.6.1 has been published. The docs now include this example.

Original Post

๐ŸŒ’ s/GmCapsule

โ€” urney.xyz/first

Sending plain text, would like to send gemtext โ€” So I have my first gamebook running... a very little thing, but I'm encountering a problem, the client is interpreting the result as plain text, as per the default, but I'd like to show it as gemtext and I don't know how to do that. [preformatted]

๐Ÿ’ฌ Yretek ยท 4 comments ยท Nov 15 ยท 6 weeks ago