Fossil Forum
Post: Nitpick on the CGI Wiki Page
Hello all,
I know this is a tiny detail, but I found the diagram near the bottom of the How CGI Works In Fossil page slightly confusing.
It appears that CGI applications (including Fossil) expect the QUERY_STRING parameter to be any text following the question mark. This is corroborated by various online descriptions of the CGI interface. However, in the diagram on that linked doc page, it is shown as the question mark being included in the QUERY_STRING parameter. I discovered this just now (having no other experience with CGI), after Fossil sort-of worked, but 404'ed the /builtin GET request. Once I trimmed the leading question mark, everything started working properly.
The following 3-line change to www/aboutcgi.wiki makes the diagram clearer in my opinion:
PATH: box "/subdir/three/timeline" mono fit
+ QMARK: box "?" mono fit
- QUERY: box "?c=55d7e1" mono fit
+ QUERY: box "c=55d7e1" mono fit
box at SCHEME width SCHEME.width height SCHEME.height
+ box at QMARK width QMARK.width height QMARK.height
line fill 0x7799CC behind QUERY \
Thanks!
No, thank you for being quick and attentive, even on such trivial details! <3
All the best!