Nope-- self.request.get is correct. The code should be in a post handler,
something like this:

class YourPage(webapp.RequestHandler):
    def post(self):
        theContent = self.request.get('content')
        # code to do something with the item...

Sorry I don't have anything more to provide-- I just wanted to clarify that
your code looks right.

> -----Original Message-----
> From: google-appengine@googlegroups.com [mailto:google-
> appeng...@googlegroups.com] On Behalf Of James Ashley
> Sent: Saturday, February 21, 2009 6:48 PM
> To: Google App Engine
> Subject: [google-appengine] Re: chunked transfer encoding
> 
> 
> Just a gut reaction...shouldn't that be self.request.post?
> 
> On Feb 20, 2:39 am, jeremy <jeremy.a...@gmail.com> wrote:
> > so using netcat as a dummy host, i've confirmed the client is sending
> > the data i expect:
> >
> > ####################################
> >
> > POST /_datum/blaaah.bin HTTP/1.1
> > Transfer-Encoding: chunked
> > Content-Type: multipart/form-data; boundary=A-
> > mBZUkudNqt56TwNWjHhJy91U2HlskAAyqGEzwn
> > Host: localhost:8088
> > Connection: Keep-Alive
> > User-Agent: Apache-HttpClient/4.0-beta2 (java 1.5)
> > Expect: 100-Continue
> >
> > 2c
> > --A-mBZUkudNqt56TwNWjHhJy91U2HlskAAyqGEzwn
> >
> > 91
> > Content-Disposition: form-data; name="content"; filename="content"
> > Content-Type: application/octet-stream
> > Content-Transfer-Encoding: binary
> >
> > <and then a lot of scary binary data>
> >
> > ####################################
> >
> > but self.request.get('content') in the request handler returns an
> > empty string....
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to