django post and get?
生活随笔
收集整理的這篇文章主要介紹了
django post and get?
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
'''GET是通過URL傳給服務(wù)器的,POST是通過HTTP頭傳給服務(wù)器的,post的數(shù)據(jù)是不跟在請(qǐng)求的url后,而是在http頭中,get是在url中 post的安全性比get高,因?yàn)橛械姆?wù)器會(huì)緩存get數(shù)據(jù),post數(shù)據(jù)不會(huì)被緩存,而且當(dāng)你再次刷新提交結(jié)果時(shí),瀏覽器會(huì)彈出安全提示對(duì)話框。 另外,get和post有一些數(shù)據(jù)格式的區(qū)別,比如說上載文件,你只能使用post方法,并且enctype只能設(shè)置成multipart/form-data。'''? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 未完待續(xù)
轉(zhuǎn)載于:https://blog.51cto.com/landline/1587769
總結(jié)
以上是生活随笔為你收集整理的django post and get?的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MFC中的几个常用类——CFileDia
- 下一篇: IOS 设置文件是否使用ARC