文檔地址:http://developer.qiniu.com/docs/v6/api/overview/up/response/callback.h...這里給出的是PHP的demo,我用的是java語言獲取明文:data = Request.URL.Path +”\n” +Request.Body 部分語言或框架無法直接獲取請求body的原始數(shù)據(jù),在自行拼接時應(yīng)當(dāng)注意,body中的數(shù)據(jù)是經(jīng)過URL轉(zhuǎn)義的這里的Request.Body在java中以流的方式讀取是空值,如果以下方式讀取Enumeration<String> paramNames = request.getParameterNames();
StringBuffer sBuffer = new StringBuffer("");
while(paramNames.hasMoreElements()){
String name = paramNames.nextElement();
String value = request.getParameter(name);
sBuffer.append("&" + name + "=" + value);
}會拼裝成文章中所說的格式,但是我無法知道順序是否正確*file_get_contents('php://input')
獲取RequestBody,其值形如:
*name=sunflower.jpg&hash=Fn6qeQi4VDLQ347NiRm-RlQx_4O2\
*&location=Shanghai&price=1500.00&uid=123有官方的技術(shù)人員幫忙解決嗎?
Java處理七?;卣{(diào)安全性問題
30秒到達(dá)戰(zhàn)場
2018-10-04 21:10:49