python (3.11.7)

(root)/
lib/
python3.11/
__pycache__/
cgi.cpython-311.opt-1.pyc

etdZdZddlmZmZmZddlmZddlZddl	Z	ddl
Zddlm
Z
ddlmZddlZddlZddlZddlZgdZejed	
dadadZd
ZdZdZeadade	jdddfdZ d$dZ!dZ"dZ#GddZ$GddZ%e	jfdZ&d%dZ'e	jfdZ(dZ)dZ*d Z+d!Z,d"Z-ed#kre&dSdS)&aSupport module for CGI (Common Gateway Interface) scripts.

This module defines a number of utilities for use by CGI scripts
written in Python.

The global variable maxlen can be set to an integer indicating the maximum size
of a POST request. POST requests larger than this size will result in a
ValueError being raised during parsing. The default value of this variable is 0,
meaning the request size is unlimited.
z2.6)StringIOBytesIO
TextIOWrapper)MappingN)
FeedParser)Message)MiniFieldStorageFieldStorageparseparse_multipartparse_headertestprint_exception
print_environ
print_formprint_directoryprint_argumentsprint_environ_usage)
)removectjdtdtr0ts)	ttddan#t$rYnwxYwtstantat|dS)aWrite a log message, if there is a log file.

    Even though this function is called initlog(), you should always
    use log(); log is a variable that is set either to initlog
    (initially), to dolog (once the log file has been opened), or to
    nolog (when logging is disabled).

    The first argument is a format string; the remaining arguments (if
    any) are arguments to the % operator, so e.g.
        log("%s: %s", "a", "b")
    will write "a: b" to the log file, followed by a newline.

    If the global logfp is not None, it should be a file object to
    which log data is written.

    If the global logfp is None, the global logfile may be a string
    giving a filename to open, in append mode.  This file should be
    world writable!!!  If the file can't be opened, logging is
    silently disabled (since there is no safe place where we could
    send an error message).

    z7cgi.log() is deprecated as of 3.10. Use logging instead)
stacklevelalocale)encodingN)
warningswarnDeprecationWarninglogfilelogfpopenOSErrornologlogdologallargss 7/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/cgi.pyinitlogr,As0
MK$4444u	#999EE			D	MMMMsA
AAcFt||zdzdS)z=Write a log message to the log file.  See initlog() for docs.
N)r#write)fmtargss  r+r(r(fs"	KKD4     cdS)z9Dummy function, assigned to log when logging is disabled.Nr)s r+r&r&jsDr2c\datrtdatadS)zClose the log file.rN)r"r#closer,r'r4r2r+closelogr7ns,G




CCCr2&c:|tj}t|dr|j}nd}t	|t
r|j}d|vrd|d<|ddkrt|d\}}|dkrt|||	S|d
kr_t|d}tr|tkrtd||
|}	nd
}	d|vr|	r|	dz}	|	|dz}	n0tjddr|	r|	dz}	|	tjdz}	|	|d<n;d|vr	|d}	n.tjddrtjd}	nd
}	|	|d<tj|	||||S)aParse a query in the environment or from a file (default stdin)

        Arguments, all optional:

        fp              : file pointer; default: sys.stdin.buffer

        environ         : environment dictionary; default: os.environ

        keep_blank_values: flag indicating whether blank values in
            percent-encoded forms should be treated as blank strings.
            A true value indicates that blanks should be retained as
            blank strings.  The default false value indicates that
            blank values are to be ignored and treated as if they were
            not included.

        strict_parsing: flag indicating what to do with parsing errors.
            If false (the default), errors are silently ignored.
            If true, errors raise a ValueError exception.

        separator: str. The symbol to use for separating the query arguments.
            Defaults to &.
    Nrzlatin-1REQUEST_METHODGETPOSTCONTENT_TYPEzmultipart/form-data)	separator!application/x-www-form-urlencodedCONTENT_LENGTHMaximum content length exceededrQUERY_STRINGr8)rr>)sysstdinhasattrr
isinstancerbufferr
rintmaxlen
ValueErrorreaddecodeargvurllibrparse_qs)
fpenvironkeep_blank_valuesstrict_parsingr>rctypepdictclengthqss
          r+rrs0
z
Yr*;"m$$
Yw&&$) ! F**#GN$;<<u)))"2u	BBBB
9
9
9'"2344G
D'F** !BCCC!!((22BBBW$$ S2gn--BB
Xabb\	" S2chqk!B"$	7	"	"
^
$8ABB<	!BBB"$<  %6*2i!IIIr2utf-8replacec.|dd}d|}t}||	|d|d<n#t$rYnwxYwt||||ddi|fd	DS)
aParse multipart input.

    Arguments:
    fp   : input file
    pdict: dictionary containing other parameters of content-type header
    encoding, errors: request encoding and error handler, passed to
        FieldStorage

    Returns a dictionary just like parse_qs(): keys are the field names, each
    value is a list of values for that field. For non-file fields, the value
    is a list of strings.
    boundaryasciiz multipart/form-data; boundary={}zCONTENT-LENGTHzContent-Lengthr:r<)headersrerrorsrRr>c<i|]}||Sr4)getlist).0kfss  r+
<dictcomp>z#parse_multipart.<locals>.<dictcomp>s%)))Arzz!}})))r2)rMformatrset_typeKeyErrorr
)	rQrVrr_r>r\rUr^rds	        @r+rrsZ ''00H.55h??EiiGU
$)*:$; !!



	b'HV!6*i
A
A
AB))))b))))sA""
A/.A/c#K|dddkr|dd}|d}|dkr|dd||dd|z
dzrQ|d|dz}|dkr2|dd||dd|z
dzQ|dkrt|}|d|}|V||d}|dddkdSdS)NrC;r"\"r)findcountlenstrip)sendfs   r+_parseparamrts
BQB%3,,
abbEffSkkAgg17733//!''%C2H2HHAMg&&cAg&&CAgg17733//!''%C2H2HHAMg77a&&C
dsdGggii
cddGBQB%3,,,,,,r2ctd|z}|}i}|D]}|d}|dkr|d|}||dzd}t|dkrP|d|dcxkrdkr7nn4|dd}|d	d
dd}|||<||fS)zfParse a Content-type like header.

    Return the main content-type and a dictionary of options.

    rj=rNrCrrkz\\\rl)rt__next__rmrplowerrorZ)linepartskeyrVpinamevalues        r+r
r
s
d
##E
..

CE
  
FF3KK66RaR5;;==&&((DacddGMMOOE5zzQ58uRy#?#?#?#?C#?#?#?#?#?ad

fd33;;E3GGE$K:r2c>eZdZdZdZdZdZdZiZdZ	iZ
iZdZdZ
dS)r	z=Like FieldStorage, for use when no file uploads are possible.Nc"||_||_dS)z&Constructor from field name and value.Nrrselfrrs   r+__init__zMiniFieldStorage.__init__s	


r2c(d|jd|jdS)z Return printable representation.zMiniFieldStorage(, )rrs r+__repr__zMiniFieldStorage.__repr__s-1YYY


CCr2)__name__
__module____qualname____doc__filenamelisttypefiletype_optionsdispositiondisposition_optionsr^rrr4r2r+r	r	shGGHDDDLKGDDDDDr2r	ceZdZdZdddejdddddddfdZd	Zd
ZdZ	dZ
d
ZdZdZ
d"dZd"dZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd Zd!Z dS)#r
aStore a sequence of fields, reading multipart/form-data.

    This class provides naming, typing, files stored on disk, and
    more.  At the top level, it is accessible like a dictionary, whose
    keys are the field names.  (Note: None can occur as a field name.)
    The items are either a Python list (if there's multiple values) or
    another FieldStorage or MiniFieldStorage object.  If it's a single
    object, it has the following attributes:

    name: the field name, if specified; otherwise None

    filename: the filename, if specified; otherwise None; this is the
        client side filename, *not* the file name on which it is
        stored (that's a temporary file you don't deal with)

    value: the value as a *string*; for file uploads, this
        transparently reads the file every time you request the value
        and returns *bytes*

    file: the file(-like) object from which you can read the data *as
        bytes* ; None if the data is stored a simple string

    type: the content-type, or None if not specified

    type_options: dictionary of options specified on the content-type
        line

    disposition: content-disposition, or None if not specified

    disposition_options: dictionary of corresponding options

    headers: a dictionary(-like) object (sometimes email.message.Message or a
        subclass thereof) containing *all* headers

    The class is subclassable, mostly for the purpose of overriding
    the make_file() method, which is called internally to come up with
    a file open for reading and writing.  This makes it possible to
    override the default choice of storing all files in a temporary
    directory and unlinking them as soon as they have been opened.

    Nr2rrYrZr8cd}||_||_|
|_||_d|vr|d}d|_|dks|dkrrd|vr	|d}
n)tjddrtjd}
nd}
|
tj
d}
t|
}|d	d
i}|=i}|dkrd
|d	<d|vr|d|d	<d|vr
|d|_d
|vr|d
|d<n+t|ttfstd||_|tjj|_nXt|t(r
|j|_n6t+|drt+|dstd||_||_|	|_t|t0s$tdt3|jz||_d|_||_di}}d|jvrt=|jd\}}||_||_ d|_!d|vr
|d|_!d|_"d|vr
|d|_"|j"du|_#d	|jvrt=|jd	\}}n|js|dkrdi}}nd
i}}||_||_$d|vr,|d|j|j|_%nd|_%d}d|jvrM	tM|jd}n#tN$rYnwxYwtPr|tPkrtOd||_)|j
|dkr||_dx|_*|_+d|_,|d
kr|-dS|dddkr|.|||dS|/dS)a$Constructor.  Read multipart/* until last part.

        Arguments, all optional:

        fp              : file pointer; default: sys.stdin.buffer
            (not used when the request method is GET)
            Can be :
            1. a TextIOWrapper object
            2. an object whose read() and readline() methods return bytes

        headers         : header dictionary-like object; default:
            taken from environ as per CGI spec

        outerboundary   : terminating multipart boundary
            (for internal use only)

        environ         : environment dictionary; default: os.environ

        keep_blank_values: flag indicating whether blank values in
            percent-encoded forms should be treated as blank strings.
            A true value indicates that blanks should be retained as
            blank strings.  The default false value indicates that
            blank values are to be ignored and treated as if they were
            not included.

        strict_parsing: flag indicating what to do with parsing errors.
            If false (the default), errors are silently ignored.
            If true, errors raise a ValueError exception.

        limit : used internally to read parts of multipart/form-data forms,
            to exit from the reading loop when reached. It is the difference
            between the form content-length and the number of bytes already
            read

        encoding, errors : the encoding and error handler used to decode the
            binary stream to strings. Must be the same as the charset defined
            for the page sending the form (content-type : meta http-equiv or
            header)

        max_num_fields: int. If set, then __init__ throws a ValueError
            if there are more than n fields read by parse_qsl().

        r;r:NHEADrBrCrsurrogateescapezcontent-typer?r<r=r@content-lengthz?headers must be mapping or an instance of email.message.MessagerLreadlinezfp must be file pointerz#outerboundary must be bytes, not %srzcontent-dispositionrrz
text/plainr\r2rwrA
z
multipart/)0rSrTmax_num_fieldsr>upper
qs_on_postrDrNencodergetpreferredencodingrrGrr	TypeErrorr^rErHrQrrFrr_bytesrr
outerboundary
bytes_readlimitr
rrrr_binary_filer
innerboundaryrIrKrJlengthrrdoneread_urlencoded
read_multiread_single)rrQr^rrRrSrTrrr_rr>methodrXcdisprVrUclens                  r+rzFieldStorage.__init__Js|^!2,,"w&&-.4466FU??f..((^,!""
Xa[6688:KLLBB)>@?G*M'((*1.*A'((")."97**,34D,E()w'(:;;
9!8999
:i&DGG
M
*
*	iDGGB''
;GB
,C,C
; 9:::DG 
-//	<A"=11:;<<
<*
2u DL00'5J(KLLLE5 #( 	U??f
DI
!*-DM M5T\))'^(DEELE55

	C6V#3#3'5EE>5E	!!&z!2!9!9$-:>+"G"GD"%Dt|++
4<(89::




D$-- !BCCC:$!))DJ $$	DI	777  """""
3B3Z<
'
'OOG%6GGGGGsL
L,+L,c\	|jdS#t$rYdSwxYwN)rr6AttributeErrorrs r+__del__zFieldStorage.__del__sA	IOO			DD	s
++c|Srr4rs r+	__enter__zFieldStorage.__enter__sr2c8|jdSr)rr6)rr1s  r+__exit__zFieldStorage.__exit__s	r2c8d|jd|jd|jdS)z"Return a printable representation.z
FieldStorage(rr)rrrrs r+rzFieldStorage.__repr__s)			4===$***6	6r2cDt|Sr)iterkeysrs r+__iter__zFieldStorage.__iter__sDIIKK   r2c|dkrt||jrN|jd|j}|jdn|j|j}nd}|S)Nrr)rrseekrLrrs   r+__getattr__zFieldStorage.__getattr__sz7?? &&&9	INN1INN$$EINN1
Y
"IEEEr2c|jtdg}|jD]"}|j|kr||#|st	|t|dkr|dS|S)zDictionary style indexing.N
not indexablerCr)rrrappendrhro)rr}founditems    r+__getitem__zFieldStorage.__getitem__s~9O,,,I	4	4DyCd!3!3!3	 3--u::??8OLr2cn||vr0||}t|trd|DS|jS|S)z8Dictionary style get() method, including 'value' lookup.cg|]	}|j
Sr4rrbxs  r+
<listcomp>z)FieldStorage.getvalue.<locals>.<listcomp>#///A///r2rGrrrr}defaultrs    r+getvaluezFieldStorage.getvaluesG$;;IE%&&
#//////{"Nr2cp||vr1||}t|tr
|djS|jS|S)z! Return the first value received.rrrs    r+getfirstzFieldStorage.getfirst)s?$;;IE%&&
#Qx~%{"Nr2cp||vr1||}t|trd|DS|jgSgS)z  Return list of received values.cg|]	}|j
Sr4rrs  r+rz(FieldStorage.getlist.<locals>.<listcomp>9rr2r)rr}rs   r+razFieldStorage.getlist4sI$;;IE%&&
%//////}$Ir2c|jtdttd|jDS)zDictionary style keys() method.Nrc3$K|]}|jVdSrr)rbrs  r+	<genexpr>z$FieldStorage.keys.<locals>.<genexpr>Cs$88d	888888r2)rrsetrs r+rzFieldStorage.keys?s?9O,,,C88di88888999r2cp|jtdtfd|jDS)z%Dictionary style __contains__ method.Nrc3.K|]}|jkVdSrr)rbrr}s  r+rz,FieldStorage.__contains__.<locals>.<genexpr>Is*::49#::::::r2)rrany)rr}s `r+__contains__zFieldStorage.__contains__Es>9O,,,::::	::::::r2cDt|S)z Dictionary style len(x) support.)rorrs r+__len__zFieldStorage.__len__Ks499;;r2cV|jtdt|jS)NzCannot be converted to bool.)rrboolrs r+__bool__zFieldStorage.__bool__Os'9:;;;DIr2c	|j|j}t|ts+t|jdt
|j||j	|j
}|jr
|d|jzz
}tj
||j|j|j	|j
|j|j}d|D|_|dS)z+Internal: read data in query string format. should return bytes, got r8rr_rr>c4g|]\}}t||Sr4r	rbr}rs   r+rz0FieldStorage.read_urlencoded.<locals>.<listcomp>as'JJJjc5%c511JJJr2N)rQrLrrGrrKrrrMrr_rrOr	parse_qslrSrTrr>r
skip_lines)rrXquerys   r+rzFieldStorage.read_urlencodedTs
W\\$+
&
&"e$$	= $b):):<==
=
YYt}dk
2
2?	(#''B&&&(;]4;.$.'JJKJEJJJ	r2c
|j}t|std|g|_|jrmt
j|j|j|j	|j
|j|j|j
}|jd|D|jp|j}|j}t'|t(s+t|jdt+|j|xjt1|z
c_|d|jzkrZ|rX|j}|xjt1|z
c_|d|jzkr|X|j}||t1|jz}	t5}	d}
	|j}|
|z
}
|sn4|
sn9|xjt1|
z
c_|	|
|j
|j|	}d	|vr|d	=|jdn|j|jz
}
||j||||||
|j
|j||j
}|8|d
z}|jr|t1|jz}|dkrtd|xj|jz
c_|j||j s|j|j!cxkrdkrnnn|"dS)
z/Internal: read a part that is itself multipart.z$Invalid boundary in multipart form: rc3<K|]\}}t||VdSrrrs   r+rz*FieldStorage.read_multi.<locals>.<genexpr>qs1RRjc5-c599RRRRRRr2r--NTr2rrCrzMax number of fields exceeded)#rvalid_boundaryrKrrrOrrrSrTrr_rr>extendFieldStorageClass	__class__rQrrGrrrrrorprfeedrMr6rrrrr)rrRrSrTibrklass
first_linerparserhdr_textdatar^rparts               r+rzFieldStorage.read_multifs

b!!	O*MNNN	?	SL**!79Lt{#2dn+NNE
IRRERRRRRR&8$.W%%''
*e,,	E $j)9)9)B)BDEE
E3z??*!!ed.@&@AAB))++JOOs:.OO!!ed.@&@AAB,%c$)nn,N#	\\FH
w''))D zz||	


OOs8}},OOKK
t{CCDDDllnnG 7**,- J.DDZ$/1
5'2w8I'^T^UUD)!#95"c$)nn4N!A%%$%DEEEOOt.OOIT"""y
DOt{>>>>Q>>>>>G#	H	
r2c|jdkr)||n||jddS)zInternal: read an atomic part.rN)rread_binaryr
read_linesrrrs r+rzFieldStorage.read_singles^;!OOOO	qr2i c||_|j}|dkr|dkr|jt||j}t|ts+t|jdt|j|xjt|z
c_|s	d|_dS|j||t|z
}|dkdSdSdS)zInternal: read binary data.rrrwN)	make_filerrrQrLminbufsizerGrrKrrrrorr/)rtodors   r+rzFieldStorage.read_binarysNN$$	{199((w||Cdl$;$;<<!$..G$(,d1D1D&FGGG3t99, "DIE	%%%c$ii'((((9(r2c|jrtx|_|_nt	x|_|_|jr|dS|dS)z0Internal: read lines until EOF or outerboundary.N)rrr_FieldStorage__filerrread_lines_to_outerboundaryread_lines_to_eofrs r+rzFieldStorage.read_linessn	1&-ii/DI&.jj0DI	%,,.....""$$$$$r2c|j|jt|zdkrS||_|j}|j|d|_|jr|j|dS|j||j	|j
dS)z line is always bytes, not stringNi)rtellrorrrr/rrMrr_)rr{rs   r+__writezFieldStorage.__writes;"{!!CII-44 NN,,	{++--	%%%"	EIOOD!!!!!
IOODKK
t{CCDDDDDr2c	|jd}|xjt|z
c_|s	d|_dS||X)zInternal: read lines until EOF.rCrwN)rQrrror_FieldStorage__write)rr{s  r+r	zFieldStorage.read_lines_to_eofs]	7##E**DOOs4yy(OO
	LL
	r2cd|jz}|dz}d}d}d}	|jd|jcxkr|krnndS|jd}|xjt|z
c_|t|z
}|s	d|_dS|d	kr||z}d}|dr-|r+|}||krdS||kr	d|_dS|}|	d
rd
}|dd}d}nL|	drd}|dd}d}n(|	d	rd	}|dd}d
}nd}d
}|
||zM)zInternal: read lines until outerboundary.
        Data is read as bytes: boundaries and line ends must be converted
        to bytes for comparisons.
        rr2TrrCNrrw
s

F)rrrQrrror
startswithrstripendswithr)	r
next_boundary
last_boundarydelimlast_line_lfend_readr{strippedlineodelims	         r+rz(FieldStorage.read_lines_to_outerboundarys
 22
%-
&	(z%!tz*B*B*B*BU*B*B*B*B*B7##E**DOOs4yy(OOSYYE
	~~t|u%%
/
#{{}}=00E=00 !DIEF}}W%%
(CRCy"&u%%
(CRCy"&u%%
(CRCy"'"'LL$'''M&	(r2cz|jr|jrdSd|jz}|dz}d}	|jd}|xjt|z
c_|s	d|_dS|dr-|r+|}||krdS||kr	d|_dS|d})z5Internal: skip lines until outer boundary if defined.NrTrrwrCr)rrrQrrrorrp)rrrrr{rs      r+rzFieldStorage.skip_liness!	TY	F 22
%-

	37##E**DOOs4yy(OO
	}}U##

#zz||=00E=00 !DIE"mmE22O
	3r2cp|jrtjdStjd|jdS)aOverridable: return a readable & writable file.

        The file will be used as follows:
        - data is written to it
        - seek(0)
        - data is read from it

        The file is opened in binary mode for files, in text mode
        for other fields

        This version opens a temporary file for reading and writing,
        and immediately deletes (unlinks) it.  The trick (on Unix!) is
        that the file can still be used, but it can't be opened by
        another process, and it will automatically be deleted when it
        is closed or when the current process terminates.

        If you want a more permanent file, you derive a class which
        overrides this method.  If you want a visible temporary file
        that is nevertheless automatically deleted when the script
        terminates, try defining a __del__ method in a derived class
        which unlinks the temporary files you have created.

        zwb+zw+r.)rnewline)rtempfile
TemporaryFilerrs r+rzFieldStorage.make_file3sC0	8)%000)$$888
8r2r)!rrrrosrRrrrrrrrrrrrarrrrrrrrrrrrr	rrrr4r2r+r
r
s((RCqgi $ccccJ666
!!!											:::;;;   
 CCCJG((("	%	%	%
E
E
E0(0(0(d333,88888r2r
chtdttjt_	t	}tt
t|t|td}|fd}td|n#tYnxYwtdda	t	}tt
t|t|dS#tYdSxYw)zRobust test CGI script, usable as main program.

    Write minimal HTTP headers and dump all information provided to
    the script in HTML form.

    zContent-type: text/htmlc$tddS)Nz,testing print_exception() -- <I>italics?</I>)execr4r2r+rsztest.<locals>.ffs?@@@@@r2c|dSrr4)rss r+gztest.<locals>.ghs
ACCCCCr2z9<H3>What follows is a test, not an actual exception:</H3>z*<H1>Second try with a small maxlen...</H1>2N)printrDstdoutstderrr
rrrrrrrJ)rRformrsr(s    r+rrUsO

#$$$	GGGCJ~~4g	A	A	A				
IJJJ		
6777F~~4gsA7B--B?ADD1c
|tj\}}}ddl}ttd||||||z}tdt
jd|dddt
j|dd~dS)Nrz+<H3>Traceback (most recent call last):</H3>z<PRE>rrwz<B>z
</B></PRE>)	rDexc_info	tracebackr*	format_tbformat_exception_onlyhtmlescapejoin)rrtbrr0rs      r+rr|s|,..eR	GGG	
7888r5))**4778D	EBGGD"I&&''''DH
	r2c
\t|}ttdtd|D]>}tdtj|dtj||?tdtdS)z#Dump the shell environment as HTML.z<H3>Shell Environment:</H3><DL><DT><DD></DL>N)sortedrr*r3r4)rRrr}s   r+rrs',,..!!D	GGG	
'(((	&MMMKK
fdk#&&GCL0I0IJJJJ	'NNN	GGGGGr2cLt|}ttd|stdtd|D]}tdtj|zdzd||}tdtjtt
|zd	ztd
tjt|ztdtdS)
z$Dump the contents of a form as HTML.z<H3>Form Contents:</H3>z<P>No form fields.r8r9: )rrz<i>z</i>r:r;N)r<rr*r3r4reprr)r-rr}rs    r+rrs$))++D	GGG	
#$$$$
"###	&MMM11
ft{3'''#-37777S	
edk$tE{{"3"3444v=>>>
ft{4;;///0000	'NNN	GGGGGr2c	Tttd	tj}ttj|nF#t
$r9}tdtjt
|Yd}~nd}~wwxYwtdS)z#Dump the current directory as HTML.z#<H3>Current Working Directory:</H3>zOSError:N)r*r#getcwdr3r4r%str)pwdmsgs  r+rrs	GGG	
/000 ikk	dk#111
j$+c#hh//000000001
GGGGGsA
B/BBcttdtttjtdS)Nz <H3>Command Line Arguments:</H3>)r*rDrNr4r2r+rrs=	GGG	
,---	GGG	#(OOO	GGGGGr2c$tddS)z9Dump a list of environment variables used by CGI as HTML.a
<H3>These environment variables could have been set:</H3>
<UL>
<LI>AUTH_TYPE
<LI>CONTENT_LENGTH
<LI>CONTENT_TYPE
<LI>DATE_GMT
<LI>DATE_LOCAL
<LI>DOCUMENT_NAME
<LI>DOCUMENT_ROOT
<LI>DOCUMENT_URI
<LI>GATEWAY_INTERFACE
<LI>LAST_MODIFIED
<LI>PATH
<LI>PATH_INFO
<LI>PATH_TRANSLATED
<LI>QUERY_STRING
<LI>REMOTE_ADDR
<LI>REMOTE_HOST
<LI>REMOTE_IDENT
<LI>REMOTE_USER
<LI>REQUEST_METHOD
<LI>SCRIPT_NAME
<LI>SERVER_NAME
<LI>SERVER_PORT
<LI>SERVER_PROTOCOL
<LI>SERVER_ROOT
<LI>SERVER_SOFTWARE
</UL>
In addition, HTTP headers sent by the server may be passed in the
environment as well.  Here are some common variable names:
<UL>
<LI>HTTP_ACCEPT
<LI>HTTP_CONNECTION
<LI>HTTP_HOST
<LI>HTTP_PRAGMA
<LI>HTTP_REFERER
<LI>HTTP_USER_AGENT
</UL>
N)r*r4r2r+rrs#	''''''r2cjddl}t|trd}nd}|||S)Nrs^[ -~]{0,200}[!-~]$z^[ -~]{0,200}[!-~]$)rerGrmatch)rqrI_vb_patterns   r+rrs=
III!U,,+
88K###r2__main__)rYrZr8)NNNN).r__version__iorrrcollections.abcrrDr#urllib.parserOemail.parserr
email.messagerr3rr!r__all___deprecatedrr"r#r,r(r&r7r'rJrRrrrtr
r	r
rrrrrrrrr4r2r+<module>rUs		*0/////////######



				######!!!!!!



"""Xf----

###J!!!			

2:cCICICICIL****6


0DDDDDDDD2p8p8p8p8p8p8p8p8l%%%%N*				 


)))^$$$zDFFFFFr2