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 [mod, sysop]

2023-11-15 ¡ 1 year ago

3 Later Comments ↓

=> 🏕ī¸ Yretek [OP] ¡ 2023-11-15 at 15:53:

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

=> 🕹ī¸ skyjake [mod...] ¡ 2023-11-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 [mod...] ¡ 2023-11-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 ¡ 2023-11-15 ¡ 1 year ago

Proxy Information
Original URL
gemini://bbs.geminispace.org/u/skyjake/11744
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
67.909484 milliseconds
Gemini-to-HTML Time
0.560208 milliseconds

This content has been proxied by September (3851b).