BBC changing Sent from my HTC One™ S on T-Mobile. America’s First Nationwide 4G Network.
----- Reply message ----- From: "Jeff Hardy" <jdha...@gmail.com> To: "Dalius Dobravolskas" <dalius.dobravols...@gmail.com> Cc: "ironpython-users@python.org" <ironpython-users@python.org> Subject: [Ironpython-users] POST requests to IronPython CGI under IIS 7.5 Date: Wed, Dec 19, 2012 10:51 AM On Tue, Dec 11, 2012 at 3:26 AM, Dalius Dobravolskas <dalius.dobravols...@gmail.com> wrote: > Hi, > > I have created python CGI script that should handle POST requests. I'm > running this script under IIS 7.5. It works without problems if I'm using > CPython but with IronPython I have problem (therefore I know it is > IronPython problem and not IIS). If POST request is longer than 320 symbols > then my script freezes. Initially I was trying to use python cgi module - it > was working until I tried POST request with more data. Then I tried to go > deeper and tried to parse request manually - then I found out that reading > from sys.stdin freezes my script when more data than 320 symbols is passed > to script. > > As temporary solution I will use GET requests (but kitten is killed when you > use GET to modify data) or I will use alternative to CGI scripts (any > recommendations). > > I have created bug reports here: > http://ironpython.codeplex.com/workitem/33556 Thanks for the issue report. I have no idea if it's an IronPython issue or an IIS issue, but since you say it works with normal Python, my guess is IronPython somewhere. One alternative is NWSGI (http://nwsgi.codeplex.com/) which uses IronPython to implement the standard Python WSGI interface. - Jeff _______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users
_______________________________________________ Ironpython-users mailing list Ironpython-users@python.org https://mail.python.org/mailman/listinfo/ironpython-users