Fossil Forum

TheCaiB 3 days, 4 hours ago

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!

stephan 3 days, 2 hours ago

The following 3-line change to www/aboutcgi.wiki

Corrected in . Thank you for the report.

TheCaiB 3 days, 2 hours ago

No, thank you for being quick and attentive, even on such trivial details! <3

All the best!

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button