確認ですが、「レスポンス」のbodyではなく、「リクエスト」のbodyでしょうか。 requestオブジェクトのbody部分は、基本的にPOSTでのデータ送信時にしか値が入りません。 GETの場合であれば、request.body がb''となるのは正常な動作です。
2017年12月26日 15:02 3644 <satou...@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.2 > Django = 2.0 > uWsgi = 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 django-ja@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+unsubscr...@googlegroups.com > にメールを送信してください。 > その他のオプションについては https://groups.google.com/d/optout にアクセスしてください。 > -- >>> name 滝澤 成人(タキザワ ナリト) >>> mail toritoritor...@gmail.com >>> phone 090-7513-4336 -- -- ----------------- 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 django-ja@googlegroups.com To unsubscribe from this group, send email to django-ja-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-ja --- このメールは Google グループのグループ「django-ja」の登録者に送られています。 このグループから退会し、グループからのメールの配信を停止するには django-ja+unsubscr...@googlegroups.com にメールを送信してください。 その他のオプションについては、https://groups.google.com/d/optout にアクセスしてください。