Fossil SCM
Pikchr-ized the ASCII-art breakdown of the URL into CGI vars in the aboutcgi doc.
Commit
f4370d80e8d6a186c39781e92062e210fa16b2ebd09a76493bb0a20e922e2a0c
Parent
7268a9b8517cfed…
1 file changed
+39
-9
+39
-9
| --- www/aboutcgi.wiki | ||
| +++ www/aboutcgi.wiki | ||
| @@ -202,19 +202,49 @@ | ||
| 202 | 202 | |
| 203 | 203 | The web server sets many environment variables in step 2 in addition |
| 204 | 204 | to just PATH_INFO. The following diagram shows a few of these variables |
| 205 | 205 | and their relationship to the request URL: |
| 206 | 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> | |
| 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> | |
| 216 | 246 | |
| 217 | 247 | <h2>Additional CGI Script Options</h2> |
| 218 | 248 | |
| 219 | 249 | The CGI script can have additional options used to fine-tune |
| 220 | 250 | Fossil's behavior. See the [./cgi.wiki|CGI script documentation] |
| 221 | 251 |
| --- 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 |