shell發送post請求
...
昨天踩了個坑,本來一個簡單的頁面能夠很快上線的,結果半天沒搞好。 需求是使用iframe,然后發送一個post請求去獲得響應頁面。平時使用iframe時,設定的src屬性是get請求方式。 一般有兩種方式: ajax使用post請求返回頁面,直接將返回的頁面數據放入iframe標簽中 結合form表單,利用form表單的post請求方式達到目的,我采用了這種方法 我參考html中iframe請求設 ...
2020-10-20 10:16 0 3119 推薦指數:
...
...
或者: 此方法需要一些jar包的支持 https://download.csdn.net/download/qq_35792159/10301873 ...
curl curl http://127.0.2.1:5353/user/get_macro_data -X POST -d '{"num": "7"}' --header "Content-Type: application/json" ...
public static void postNewComment(Context context,final UserAccount userAccount,final String comm ...
...
//訪問准備 URL url = new URL("http:***"); //post參數 Map<String,Object> params = new LinkedHashMap<> ...