うおおおおおおおおおおおおおおおおおおおおっ!!
遂に!
遂にやったでー!!
tmpl=self.get_template('post_entry')
body=tmpl.render(args)
header={}
header['Content-Type']='application/xml'
resp, content=self.client.request("%s/entry" % self.baseURL,'POST',str(body),header)
if resp['status'] != '201':
self.output_error("STATUS:%s" % resp['status'])
self.output_error(str(content))
どうもcontent-typeと書いていたのがアカンかったみたいです。
Content-Typeとしっかり書かないと。
/usr/lib/python2.7/dist-packages/oauth2/__init__.pyのソースを見ないとわからんかった感じ。
ipythonでわざと例外出してそのファイルが本当はどこなのか?調べるというバッドノウハウをメモしておこう。
PR