課程
/運維&測試
/接口測試
/接口測試基礎(chǔ)之入門篇
TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str.
2018-09-13
源自:接口測試基礎(chǔ)之入門篇 4-2
正在回答
已經(jīng)解決了還是數(shù)據(jù)編碼的問題和代碼沒關(guān)系。只需要將代碼變成這樣就可以了。
data?=?urllib.parse.urlencode(data).encode(encoding='utf8')
舉報
對接口測試說so easy!
2 回答請問python代碼如何運行啊,老師
7 回答json為什么每次出現(xiàn)錯誤
1 回答tests里面如何寫日志,我想打印出實際值
2 回答請問post請求方式 怎么進行接口測試呢
1 回答post請求,用文本格式提交數(shù)據(jù),返回400錯誤,該怎么解決
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2018-09-13
已經(jīng)解決了還是數(shù)據(jù)編碼的問題和代碼沒關(guān)系。只需要將代碼變成這樣就可以了。