[web-devel] Problem with multipart request on yesod/wai

Nubis nubis at woobiz.com.ar
Fri Feb 25 14:53:11 CET 2011


On Fri, Feb 25, 2011 at 7:34 AM, Michael Snoyman <michael at snoyman.com>wrote:

> It might be getting confused by the request headers. Could you send
> those over as well? Also, what version of Yesod and wai-extra are you
> running?
>
> Michael
>
>
Hi Michael, thanks for your reply and help

I'm running yesod 0.7.0, wai-0.3.1 and wai-extra-0.3.2

Please let me know if there's anything else I could do to try to diagnose
this problem. I could compile a custom version of any library with more
debugging info, for now the stepping debugger approach exceeds me.

Again, thanks a lot!

----nubis :)



This is the reelevant environment info for each request (got it from ruby
though, I'm looking for a way to dump the whole request from wai):
--------------------
dalvik

CONTENT_LENGTH:12098
CONTENT_TYPE:multipart/form-data;boundary=*****
GATEWAY_INTERFACE:CGI/1.1
PATH_INFO:/
QUERY_STRING:
REMOTE_ADDR:192.168.1.115
REMOTE_HOST:ganjizza
REQUEST_URI:http://192.168.1.115:3000/
REQUEST_METHOD:POST
HTTP_CONNECTION:Keep-Alive
HTTP_COOKIE:_SESSION=fgUGM5J/k6mGAAW+MMXIJZCJHobw/oEbb6T17KQN0p9yNqiXn/m/ACrsnRjiCEgqtG4fogMUDI+jikoFGcwmPjvuD5d+MDz32iXvDdDJsFdsFMfivuey2H+n6IF6yFGD
HTTP_USER_AGENT:Dalvik/1.1.0 (Linux; U; Android 2.1-update1; sdk
Build/ECLAIR)
HTTP_HOST:192.168.1.115:3000
HTTP_ACCEPT:*, */*
HTTP_VERSION:HTTP/1.1
REQUEST_PATH:/

--------------------
chrome:

CONTENT_LENGTH:1169352
CONTENT_TYPE:multipart/form-data;
boundary=----WebKitFormBoundaryEAoeasrCzOBAAP5s
GATEWAY_INTERFACE:CGI/1.1
PATH_INFO:/
QUERY_STRING:
REMOTE_ADDR:192.168.1.115
REMOTE_HOST:ganjizza
REQUEST_METHOD:POST
REQUEST_URI:http://192.168.1.115:3000/
HTTP_HOST:192.168.1.115:3000
HTTP_CONNECTION:keep-alive
HTTP_REFERER:http://192.168.1.115:3000/static/client/index.html
HTTP_CACHE_CONTROL:max-age=0
HTTP_ORIGIN:http://192.168.1.115:3000
HTTP_ACCEPT:application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_USER_AGENT:Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.10
(KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
HTTP_ACCEPT_ENCODING:gzip,deflate,sdch
HTTP_ACCEPT_LANGUAGE:en-US,en;q=0.8
HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.3
HTTP_COOKIE:_SESSION=AoJJW9pxuycN7/bDU0+ho4auufmHtnZM0IiCp04EgXhyNqiXn/m/ACrsnRjiCEgqtG4fogMUDI+jikoFGcwmPhxQjE4k4AICWrp934EzZ53IyUdx5OqY9KhjYT8xSyfa;
_recetas_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlMjEyMTBlZjEzMThiOGNhZDU4Njk0NTdjZmNhYTM0MTJJIhBfY3NyZl90b2tlbgY7AEZJIjFkTVB0NGdPMFJVNHgzMk5QVC9sMXBWV3FVSXNNSStCZ2xqc0RxOXFVUk9zPQY7AEY%3D--b71e4e03f9b47a7b62bc977d45e9502123e5510a
HTTP_VERSION:HTTP/1.1
REQUEST_PATH:/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20110225/c18f1833/attachment.htm>


More information about the web-devel mailing list