postman怎么发送post请求

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了postman怎么发送post请求相关的知识,希望对你有一定的参考价值。

参考技术A Postman 是一个用来测试Web API的Chrome 外挂软件,可由google store 免费取得并安装于Chrome里,对于有在开发Web API的开发者相当有用,省掉不少写测试页面呼叫的工作,通常我们看到的使用情境多数是直接呼叫Web API而未随着Request发送相关所需参数,本篇就来说明如果我们想要在呼叫Web API时一并夹带JSON数据时,该如何使用Postman?

postman发送请求的其中一个值需要MD5加密,如何加密的

参考技术A 将这个值传入这个方法中返回的就是加密后的字符。再将字符放入到postman中,postman本身没有提供加密。
/**利用MD5进行加密
* @param str 待加密的字符串
* @return 加密后的字符串
* @throws NoSuchAlgorithmException 没有这种产生消息摘要的算法
* @throws UnsupportedEncodingException
*/
public String EncoderByMd5(String str) throws NoSuchAlgorithmException, UnsupportedEncodingException
//确定计算方法
MessageDigest md5=MessageDigest.getInstance("MD5");
BASE64Encoder base64en = new BASE64Encoder();
//加密后的字符串
String newstr=base64en.encode(md5.digest(str.getBytes("utf-8")));
return newstr;
参考技术B 路过,但我不知道怎么回答你的问题

以上是关于postman怎么发送post请求的主要内容,如果未能解决你的问题,请参考以下文章

postman post请求 header 和body怎么用

怎么用javascript发送post请求?

使用Postman发送xml Post请求(Geoserver)

postman发送post请求

postman发送post请求

postman怎么发送json参数