PUT request vars

63 views
Skip to first unread message

Michael Beale

unread,
Mar 2, 2012, 8:36:24 AM3/2/12
to web...@googlegroups.com
I am having problems getting variables out of a PUT request.  I have tried self.request.POST['varname'], self.request.GET['varname'], self.request.get('varname'),self.request.get_all('varname') and all return None or empty value.  I am sending request through jquery and the form data section is filled out correctly for the request.  What am I missing here?   I would have thought that the variables would be accessed the same way as the POST variables.  Let me know!

Message has been deleted

Ari Wibowo

unread,
Mar 16, 2013, 2:35:38 PM3/16/13
to web...@googlegroups.com
basically self.request.POST is UnicodeMultiDict type, so you must using self.request.POST.get('varname') instead self.request.POST['varname']

Ari Wibowo

unread,
Mar 16, 2013, 2:38:03 PM3/16/13
to web...@googlegroups.com
basically self.request.POST is UnicodeMultiDict type, so you must using self.request.POST.get('varname') instead self.request.POST['varname']

On Friday, March 2, 2012 8:36:24 PM UTC+7, Michael Beale wrote:
Reply all
Reply to author
Forward
0 new messages