I'm trying to attach 3rd party service to my site (payment system). This service sends information to my Pyramid application at specific URL by POST requests. This POST request is non-Unicode and data field includes non-ASCII chars. And such request raises UnicodeDecodeError.
Reproduce such error is easy. Create non-Unicode file and put there <form action="http://localhost:6543/" method="post"> <input type="submit" name="button" value="NON-ASCII CHARS HERE"> </form> then open page in browser and press button. Even pylonsproject.org return Internal Server Error on such test. I have already read at ICR #pyramid that malformed request should throw exception. But as for me it is abnormal when simple HelloWorldApp that not requires parameters at all have such behavior. Some hacker can use it to fill out your exception log or mailbox (depending on where your tracebacks goes). So... Is there any way to process non-Unicode POST-request inside Pyramid application? -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/ssSE3Qq8VhgJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
