Hi there.
I'm trying to upload some data to datastore, I can't use CSV bulk
uploader because my data is not just text. Part of the data is an
image. So I decide to make a python script to call a POST method on
the server and go saving each row of my data.
I test on local environment and works well, but after upload the
application, my script receive an error 405 Method POST not allowed.
I define my request class on server:
class BulkUpload(webapp.RequestHandler):
def post(self):
....
model.put()
On the client i'm using a script to call a url
content_type, body = encode_multipart_formdata(fields, files)
#here i put all my data
h = httplib.HTTP(host)
h.putrequest('POST', selector)
h.putheader('content-type', content_type)
h.putheader('content-length', str(len(body)))
h.endheaders()
h.send(body)
errcode, errmsg, headers = h.getreply()
Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---