api美國石油協(xié)會(huì) 用程序模擬表單提交是什么原理?我用的api怎么模擬提交提交?
用程序模擬表單提交是什么原理?我用的api怎么模擬提交提交?注意以下兩點(diǎn)://1。設(shè)置標(biāo)題中的內(nèi)容長度:{“content length”:post數(shù)據(jù)長度,“Content Type”:“appli
用程序模擬表單提交是什么原理?我用的api怎么模擬提交提交?
注意以下兩點(diǎn)://
1。設(shè)置標(biāo)題中的內(nèi)容長度:{“content length”:post數(shù)據(jù)長度,“Content Type”:“application/x-www-form-urlencoded”}var post數(shù)據(jù)=查詢字符串.stringify({用戶名:“用戶名”,密碼:“123456”,“登錄表單類型”:“PWD”})//
2。將參數(shù)寫入流postu請求寫入(后期數(shù)據(jù))