關於content-type請求頭的說明

Content-Type請求頭的作用,用於標記請求體數據的格式,如:


1. Content-Type:application/x-www-form-urlencoded
請求體:b'pwd=123&user=root'

2. Content-Type:application/json
請求體:{"pwd": 123, "user": "root"}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章