|
List Info
Thread: $180 reward for help in tackling the hardest problem in the universe.
|
|
| $180 reward for help in tackling the
hardest problem in the universe. |

|
2007-01-25 20:55:25 |
|
|
Ok, well it's probably not as hard as Fermat...but...it is giving me an
extreme case of gas.
Basically, I will pay $100 to the first person who can tell me why this
upload is failing.
The money will be available through paypal. All I need is your email
address.
I am trying to upload a file from a flash app running in firefox on
windows xp to a turbogears controller running on linux. The controller
is never getting dispatched, as is apparent from the lack of output
from my "print 'got here' "
statement. I tried this print trick in another controller in same TG
app just to be sure, and it did, in fact, work there.
What I'm seeing is that cherrypy is trying to read the file and timing
out. I added some print statements inside cherrypy in both read and
readline in the httptools.py module. Then I tried posting a small file
first with the flex application, then with a very simple html upload
form. The results are as follows:
------------------------------------------------------------------------------------------------------------------------------------------------------------
Simple HTML post (this worked fine, my controller got dispatched from
cherrypy which did not choke):
------------------------------------------------------------------------------------------------------------------------------------------------------------
'POST /upload HTTP/1.1rn'
'Host: www01.videoonramp.com:8080rn'
'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9rn'
'Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5rn'
'Accept-Language: en-us,en;q=0.5rn'
'Accept-Encoding: gzip,deflatern'
'Accept-Charset: UTF-8,*rn'
'Keep-Alive: 300rn'
'Connection: keep-alivern'
'Referer: http://www01.videoonramp.com:8080/testUploadrn'
'Cookie: tg-visit=a45746678ee38f1a27c12923cc260a190891f594rn'
'Content-Type: multipart/form-data;
boundary=---------------------------187161971819895rn'
'Content-Length: 677rn'
'rn'
'-----------------------------187161971819895rn'
'Content-Disposition: form-data; name="myFile";
filename=".project"rn'
'Content-Type: application/octet-streamrn'
'rn'
'rn'
'rn'
'tUploaderrn'
'trn'
'trn'
'trn'
'trn'
'ttrn'
'tttcom.adobe.flexbuilder.project.flexbuilderrn'
'tttrn'
'tttrn'
'ttrn'
'trn'
'trn'
'ttcom.adobe.flexbuilder.project.flexnaturern'
'ttcom.adobe.flexbuilder.project.actionscriptnaturern'
'trn'
'rn'
'rn'
'-----------------------------187161971819895--rn'
2007-01-25 11:39:59,140 turbogears.identity INFO Identity is
available...
*****************
*****************
74.192.146.128 - - "POST /upload HTTP/1.1" 200 152
"http://www01.videoonramp.com:8080/testUpload" "Mozilla/5.0 (Windows;
U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9"
2007-01-25 11:40:19,017 turbogears.identity.savisit INFO updating visit
(a45746678ee38f1a27c12923cc260a190891f594) to expire at 2007-01-25
11:59:59.140276
------------------------------------------------------------------------------------------------------------------------------------------------------------
Post same file from Flex app (this choked cherrypy as you will see
below):
------------------------------------------------------------------------------------------------------------------------------------------------------------
'POST /postFile HTTP/1.1rn'
'Accept: text/*rn'
'Content-Type: multipart/form-data;
boundary=----------KM7Ij5cH2KM7Ef1gL6ae0ae0cH2gL6rn'
'User-Agent: Shockwave Flashrn'
'Host: www01.videoonramp.com:8080rn'
'Content-Length: 885rn'
'Connection: Keep-Alivern'
'Cache-Control: no-cachern'
'rn'
'------------KM7Ij5cH2KM7Ef1gL6ae0ae0cH2gL6rn'
'Content-Disposition: form-data; name="Filename"rn'
'rn'
'.projectrn'
'------------KM7Ij5cH2KM7Ef1gL6ae0ae0cH2gL6rn'
'Content-Disposition: form-data; name="Filedata";
filename=".project"rn'
'Content-Type: application/octet-streamrn'
'rn'
'rn'
'rn'
'tUploaderrn'
'trn'
'trn'
'trn'
'trn'
'ttrn'
'tttcom.adobe.flexbuilder.project.flexbuilderrn'
'tttrn'
'tttrn'
'ttrn'
'trn'
'trn'
'ttcom.adobe.flexbuilder.project.flexnaturern'
'ttcom.adobe.flexbuilder.project.actionscriptnaturern'
'trn'
'rn'
'rn'
'------------KM7Ij5cH2KM7Ef1gL6ae0ae0cH2gL6rn'
'Content-Disposition: form-data; name="Upload"rn'
'rn'
'Submit Queryrn'
2007-01-25 11:42:46,4 | |