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: [email protected] [mailto:google-
> [email protected]] 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 <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---