config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/CGIHTTPServer.pyo

³ò
h”Rc	@s¼dZdZdgZddkZddkZddkZddkZddkZddkZdei	fd„ƒYZ
ead„Z
d„Ze
eid„Zed	joeƒndS(
súCGI-savvy HTTP Server.

This module builds on SimpleHTTPServer by implementing GET and POST
requests to cgi-bin scripts.

If the os.fork() function is not present (e.g. on Windows),
os.popen2() is used as a fallback, with slightly altered semantics; if
that function is not present either (e.g. on Macintosh), only Python
scripts are supported, and they are executed by the current process.

In all cases, the implementation is intentionally naive -- all
requests are executed sychronously.

SECURITY WARNING: DON'T USE THIS CODE UNLESS YOU ARE INSIDE A FIREWALL
-- it may execute arbitrary Python code or external programs.

Note that status code 200 is sent prior to execution of a CGI script, so
scripts cannot send other status codes such as 302 (redirect).
s0.4tCGIHTTPRequestHandleriÿÿÿÿNcBsƒeZdZeedƒZeedƒZeedƒZdZd„Z	d„Z
d„Zdd	gZd
„Z
d„Zd„ZRS(
s­Complete HTTP server with GET, HEAD and POST commands.

    GET and HEAD also support running CGI scripts.

    The POST command is *only* implemented for CGI scripts.

    tforktpopen2tpopen3icCs/|iƒo|iƒn|iddƒdS(sRServe a POST request.

        This is only implemented for CGI scripts.

        iõsCan only POST to CGI scriptsN(tis_cgitrun_cgit
send_error(tself((s)/usr/local/lib/python2.5/CGIHTTPServer.pytdo_POST5s
cCs/|iƒo|iƒSntii|ƒSdS(s-Version of send_head that support CGI scriptsN(RRtSimpleHTTPServertSimpleHTTPRequestHandlert	send_head(R((s)/usr/local/lib/python2.5/CGIHTTPServer.pyRAs
cCs~|i}xn|iD]c}t|ƒ}|| |jo@||p||djo#|| ||df|_tSqqWtS(s±Test whether self.path corresponds to a CGI script.

        Return a tuple (dir, rest) if self.path requires running a
        CGI script, None if not.  Note that rest begins with a
        slash if it is not empty.

        The default implementation tests whether the path
        begins with one of the strings in the list
        self.cgi_directories (and the next character is a '/'
        or the end of the string).

        t/i(tpathtcgi_directoriestlentcgi_infotTruetFalse(RR
txti((s)/usr/local/lib/python2.5/CGIHTTPServer.pyRHs	
.s/cgi-bins/htbincCs
t|ƒS(s1Test whether argument path is an executable file.(t
executable(RR
((s)/usr/local/lib/python2.5/CGIHTTPServer.pyt
is_executableascCs(tii|ƒ\}}|iƒdjS(s.Test whether argument path is a Python script.s.pys.pyw(s.pys.pyw(tosR
tsplitexttlower(RR
theadttail((s)/usr/local/lib/python2.5/CGIHTTPServer.pyt	is_pythonesc.Cs~
|i}|i\}}|idt|ƒdƒ}xz|djol|| }||d}|i|ƒ}tii|ƒo-||}}|idt|ƒdƒ}q7Pq7W|idƒ}|djo|| ||d}}nd}|idƒ}|djo|| ||}	}n|d}	}|d|	}
|i|
ƒ}tii|ƒp|i	dd|
ƒdSntii
|ƒp|i	d	d
|
ƒdSn|i|
ƒ}|pj|ip|i
p|ip|i	d	d|
ƒdSn|i|ƒp|i	d	d|
ƒdSq-nh}
|iƒ|
d
<|ii|
d<d|
d<|i|
d<t|iiƒ|
d<|i|
d<ti|ƒ}||
d<|i|ƒ|
d<|
|
d<|o||
d<n|iƒ}||idjo||
d<n|id|
d<|iidƒ}|oÌ|iƒ}t|ƒdjo©ddk}ddk}|d|
d<|di ƒdjohy|i!|dƒ}Wn|i"j
oqôX|idƒ}t|ƒdjo|d|
d <qôqøqün|ii#djo|ii%|
d!<n|ii#|
d!<|iid"ƒ}|o||
d#<ng}xY|ii&d$ƒD]E}|d d%jo|i'|i(ƒƒqs||d&id'ƒ}qsWd'i)|ƒ|
d(<|iid)ƒ}|o||
d*<nt*d|ii+d+ƒƒ}|od,i)|ƒ|
d-<nxdCD]}|
i,|dƒq6Wti-i.|
ƒ|i/d.d/ƒ|i0d0d1ƒ}|io~|	g}d2|jo|i'|ƒnt1ƒ}|i2i3ƒti4ƒ}|djo~ti5|dƒ\}}x@t6i6|i7gggdƒdo|i7i8dƒpPqýqýW|o|i9d3|ƒndSnyvyti:|ƒWnti;j
onXti<|i7i=ƒdƒti<|i2i=ƒdƒti>||ti-ƒWqz
|ii?|i@|iƒtiAd4ƒqz
Xnq|i
p
|ioYddkB}|io
tiC}n
tiD}|} |i|ƒoItEiF}!|!i ƒiGd5ƒo|!d6 |!d7}!nd8|!| f} nd2|jo!d9|jod:| |f} n|iHd;| ƒytI|ƒ}"WntJtKfj
o
d}"nX|| d<ƒ}#|#d}$|#d}%|io|#d}&n|ii ƒd=jo0|"djo#|i7i8|"ƒ}'|$iL|'ƒnxFt6i6|i7iMgggdƒdo|i7iMiNdƒpPqqW|$iOƒ|iP|%|i2ƒ|io5|&i8ƒ}(|&iOƒ|(o|i9d>|(ƒq?	n|%iOƒ}|o|i9d3|ƒqz
|iHd?ƒntEiQ})tEiR}*tEiS}+tEiT},y¤tiUƒ}-z_|gtE_Qd2|jotEiQi'|ƒn|i2tE_S|i7tE_RtV|hd@dA<ƒWd|)tE_Q|*tE_R|+tE_S|,tE_TtiW|-ƒXWn+tXj
o}|i9dBt|ƒƒnX|iHd?ƒdS(DsExecute a CGI script.Riit?ti”sNo such CGI script (%r)Ni“s#CGI script is not a plain file (%r)s&CGI script is not a Python script (%r)s!CGI script is not executable (%r)tSERVER_SOFTWAREtSERVER_NAMEsCGI/1.1tGATEWAY_INTERFACEtSERVER_PROTOCOLtSERVER_PORTtREQUEST_METHODt	PATH_INFOtPATH_TRANSLATEDtSCRIPT_NAMEtQUERY_STRINGtREMOTE_HOSTtREMOTE_ADDRt
authorizationiiÿÿÿÿt	AUTH_TYPEtbasict:tREMOTE_USERtCONTENT_TYPEscontent-lengthtCONTENT_LENGTHtaccepts	

 it,tHTTP_ACCEPTs
user-agenttHTTP_USER_AGENTtcookies, tHTTP_COOKIEiÈsScript output followst+t t=sCGI script exit status %#xisw.exeiûÿÿÿiüÿÿÿs%s -u %st"s%s "%s"scommand: %stbtposts%ssCGI script exited OKt__main__t__name__sCGI script exit status %s(R(R)R1R5R7(YR
RtfindRttranslate_pathRtisdirtrfindtexistsRtisfileRt	have_forkthave_popen2thave_popen3Rtversion_stringtservertserver_nametprotocol_versiontstrtserver_porttcommandturllibtunquotetaddress_stringtclient_addresstheaderst	getheadertsplittbase64tbinasciiRtdecodestringtErrort
typeheadertNonettypetgetallmatchingheaderstappendtstriptjointfiltert
getheaderst
setdefaulttenvirontupdatet
send_responsetreplacet
nobody_uidtwfiletflushRtwaitpidtselecttrfiletreadt	log_errortsetuidterrortdup2tfilenotexecvethandle_errortrequestt_exittshutilRRtsysRtendswithtlog_messagetintt	TypeErrort
ValueErrortwritet_socktrecvtclosetcopyfileobjtargvtstdintstdouttstderrtgetcwdtexecfiletchdirt
SystemExit(.RR
tdirtrestRtnextdirtnextrestt	scriptdirtquerytscriptt
scriptnamet
scriptfiletispytenvtuqrestthostR+RWRXtlengthR2tlinetuatcotkt
decoded_querytargstnobodytpidtstsRytpopenxtcmdlinetinterptnbytestfilestfitfotfetdataterrorst	save_argvt
save_stdintsave_stdouttsave_stderrtsave_cwd((s)/usr/local/lib/python2.5/CGIHTTPServer.pyRjsr	


 








	
	

#


		


#&



				
				(R?t
__module__t__doc__thasattrRRFRGRHtrbufsizeRRRRRRR(((s)/usr/local/lib/python2.5/CGIHTTPServer.pyR"s					c	CsŒtotSnyddk}Wntj
odSnXy|idƒdaWn5tj
o)dttd„|iƒƒƒanXtS(s$Internal routine to get nobody's uidiÿÿÿÿNR¡iicSs|dS(i((R((s)/usr/local/lib/python2.5/CGIHTTPServer.pyt<lambda>Ws(R¡tpwdtImportErrortgetpwnamtKeyErrortmaxtmaptgetpwall(R¸((s)/usr/local/lib/python2.5/CGIHTTPServer.pyRiKs	'cCsAyti|ƒ}Wntij
otSnX|id@djS(sTest for executable file.iIi(RtstatRrRtst_mode(R
tst((s)/usr/local/lib/python2.5/CGIHTTPServer.pyR[s
	cCsti||ƒdS(N(R	ttest(tHandlerClasstServerClass((s)/usr/local/lib/python2.5/CGIHTTPServer.pyRÂdsR>(R´t__version__t__all__RRzRPtBaseHTTPServerR	RmR
RR\R¡RiRt
HTTPServerRÂR?(((s)/usr/local/lib/python2.5/CGIHTTPServer.pys<module>s"	ÿ(			


Man Man