Fossil SCM

Pikchr-ized the ASCII-art breakdown of the URL into CGI vars in the aboutcgi doc.

wyoung 2024-02-18 14:43 trunk
Commit f4370d80e8d6a186c39781e92062e210fa16b2ebd09a76493bb0a20e922e2a0c
1 file changed +39 -9
--- www/aboutcgi.wiki
+++ www/aboutcgi.wiki
@@ -202,19 +202,49 @@
202202
203203
The web server sets many environment variables in step 2 in addition
204204
to just PATH_INFO. The following diagram shows a few of these variables
205205
and their relationship to the request URL:
206206
207
-<pre>
208
- REQUEST_URI
209
- ___________________|_______________________
210
- / \
211
- http://example.com/cgis/example2/subdir/three/timeline?c=55d7e1
212
- \_________/\____________/\____________________/ \______/
213
- | | | |
214
- HTTP_HOST SCRIPT_NAME PATH_INFO QUERY_STRING
215
-</pre>
207
+<verbatim type="pikchr">
208
+charwid = 0.075
209
+thickness = 0
210
+
211
+SCHEME: box "https://" mono fit
212
+DOMAIN: box "example.com" mono fit
213
+SCRIPT: box "/cgis/example2" mono fit
214
+PATH: box "/subdir/three/timeline" mono fit
215
+QUERY: box "?c=55d7e1" mono fit
216
+
217
+thickness = 0.01
218
+
219
+box at 0.3 below DOMAIN "HTTP_HOST" mono fit invis
220
+line from previous box.n to DOMAIN.sw
221
+line from previous box.n to DOMAIN.se
222
+
223
+box at 0.3 below SCRIPT "SCRIPT_NAME" mono fit invis
224
+line from previous box.n to SCRIPT.sw
225
+line from previous box.n to SCRIPT.se
226
+
227
+box at 0.3 below PATH "PATH_INFO" mono fit invis
228
+line from previous box.n to PATH.sw
229
+line from previous box.n to PATH.se
230
+
231
+box at 0.3 below QUERY "QUERY_STRING" mono fit invis
232
+line from previous box.n to QUERY.sw
233
+line from previous box.n to QUERY.se
234
+
235
+box at 0.5 above PATH "REQUEST_URI" mono fit invis
236
+line from previous box.s to SCRIPT.nw
237
+line from previous box.s to QUERY.ne
238
+
239
+color = lightgray
240
+box at SCHEME width SCHEME.width height SCHEME.height
241
+box at DOMAIN width DOMAIN.width height DOMAIN.height
242
+box at SCRIPT width SCRIPT.width height SCRIPT.height
243
+box at PATH width PATH.width height PATH.height
244
+box at QUERY width QUERY.width height QUERY.height
245
+</verbatim>
216246
217247
<h2>Additional CGI Script Options</h2>
218248
219249
The CGI script can have additional options used to fine-tune
220250
Fossil's behavior. See the [./cgi.wiki|CGI script documentation]
221251
--- www/aboutcgi.wiki
+++ www/aboutcgi.wiki
@@ -202,19 +202,49 @@
202
203 The web server sets many environment variables in step 2 in addition
204 to just PATH_INFO. The following diagram shows a few of these variables
205 and their relationship to the request URL:
206
207 <pre>
208 REQUEST_URI
209 ___________________|_______________________
210 / \
211 http://example.com/cgis/example2/subdir/three/timeline?c=55d7e1
212 \_________/\____________/\____________________/ \______/
213 | | | |
214 HTTP_HOST SCRIPT_NAME PATH_INFO QUERY_STRING
215 </pre>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
217 <h2>Additional CGI Script Options</h2>
218
219 The CGI script can have additional options used to fine-tune
220 Fossil's behavior. See the [./cgi.wiki|CGI script documentation]
221
--- www/aboutcgi.wiki
+++ www/aboutcgi.wiki
@@ -202,19 +202,49 @@
202
203 The web server sets many environment variables in step 2 in addition
204 to just PATH_INFO. The following diagram shows a few of these variables
205 and their relationship to the request URL:
206
207 <verbatim type="pikchr">
208 charwid = 0.075
209 thickness = 0
210
211 SCHEME: box "https://" mono fit
212 DOMAIN: box "example.com" mono fit
213 SCRIPT: box "/cgis/example2" mono fit
214 PATH: box "/subdir/three/timeline" mono fit
215 QUERY: box "?c=55d7e1" mono fit
216
217 thickness = 0.01
218
219 box at 0.3 below DOMAIN "HTTP_HOST" mono fit invis
220 line from previous box.n to DOMAIN.sw
221 line from previous box.n to DOMAIN.se
222
223 box at 0.3 below SCRIPT "SCRIPT_NAME" mono fit invis
224 line from previous box.n to SCRIPT.sw
225 line from previous box.n to SCRIPT.se
226
227 box at 0.3 below PATH "PATH_INFO" mono fit invis
228 line from previous box.n to PATH.sw
229 line from previous box.n to PATH.se
230
231 box at 0.3 below QUERY "QUERY_STRING" mono fit invis
232 line from previous box.n to QUERY.sw
233 line from previous box.n to QUERY.se
234
235 box at 0.5 above PATH "REQUEST_URI" mono fit invis
236 line from previous box.s to SCRIPT.nw
237 line from previous box.s to QUERY.ne
238
239 color = lightgray
240 box at SCHEME width SCHEME.width height SCHEME.height
241 box at DOMAIN width DOMAIN.width height DOMAIN.height
242 box at SCRIPT width SCRIPT.width height SCRIPT.height
243 box at PATH width PATH.width height PATH.height
244 box at QUERY width QUERY.width height QUERY.height
245 </verbatim>
246
247 <h2>Additional CGI Script Options</h2>
248
249 The CGI script can have additional options used to fine-tune
250 Fossil's behavior. See the [./cgi.wiki|CGI script documentation]
251

Keyboard Shortcuts

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