asp versus cgi
davidj411
davidj411 at gmail.com
Wed Nov 26 15:50:51 EST 2008
when i use cgi, i never get a 500 error but i can see how it might
take on overhead if many users are hitting the site at once. so to
avoid this, i looked into registering the python engine for ASP
requests.
when i use asp (C:\WINDOWS\system32\inetsrv\asp.dll fileversion
info:"--a-- W32i DLL ENU 5.1.2600.5512 shp 369,664 04-14-2008
asp.dll") , i get intermittent results. it either works or generates a
500 error. the error pattern is 200, 500, 200, 500, 200, 500 and so
on.
********************************************************
this is the ASP code when using GET method:
<%@ LANGUAGE = Python%>
<%
import sys
sys.stdout=sys.stdin
usr = Request.QueryString("usr")
Response.Write ("usr")
%>
**********************************************************
this is the ASP code when using the POST method
<%@ LANGUAGE = Python%>
<%
import sys
sys.stdout=sys.stdin
usr = Request.Form ("usr")
Response.Write (str(usr))
%>
**********************************************************
POST by the way seems to have a 100 kb limit so why ever use it unless
you need to keep the data out of the URL?)
More information about the Python-list
mailing list