...
昨天踩了个坑,本来一个简单的页面能够很快上线的,结果半天没搞好。 需求是使用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<> ...