--
--
----------------- http://djangoproject.jp/ -----------------
You received this message because you are subscribed to the Google Groups "django-ja" group.
To post to this group, send email to djan...@googlegroups.com
To unsubscribe from this group, send email to django-ja-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-ja
---
このメールは Google グループのグループ「django-ja」に登録しているユーザーに送られています。
このグループから退会し、グループからのメールの配信を停止するには django-ja+unsubscribe@googlegroups.com にメールを送信してください。
その他のオプションについては https://groups.google.com/d/optout にアクセスしてください。
確認ですが、「レスポンス」のbodyではなく、「リクエスト」のbodyでしょうか。requestオブジェクトのbody部分は、基本的にPOSTでのデータ送信時にしか値が入りません。GETの場合であれば、request.body がb''となるのは正常な動作です。
2017年12月26日 15:02 3644 <sato...@gmail.com>:
初めてご質問させていただきます。requestを受信し、views.pyの中でrequest.bodyするとbodyがb''となってしまいます。tcpdumpでは、bodyに<?xml version.....と適切に入っており、Content-Lengthに1377と設定されています。そのrequestを、views.pyにてrequest.bodyで取得すると、前述のとおり、b''となり、request.METAのCONTENT_LENGTH : ''となっています。確認すべき項目、設定などがありましたらご教示ください。バージョンpython = 3.6.2Django = 2.0uWsgi = 2.0.15
--
--
----------------- http://djangoproject.jp/ -----------------
You received this message because you are subscribed to the Google Groups "django-ja" group.
To post to this group, send email to djan...@googlegroups.com
To unsubscribe from this group, send email to django-ja-...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-ja
---
このメールは Google グループのグループ「django-ja」に登録しているユーザーに送られています。
このグループから退会し、グループからのメールの配信を停止するには django-ja+...@googlegroups.com にメールを送信してください。
その他のオプションについては https://groups.google.com/d/optout にアクセスしてください。