[英]Creating system variable in WS02 api manager
I am trying to create a system variable in ws02 api manager.我正在尝试在 ws02 api 管理器中创建一个系统变量。
The variable contains a special character such as / but the when being read in by the global mediator the / gets converted to a %2F该变量包含一个特殊字符,例如 / 但是当被全局中介读取时 / 被转换为 %2F
Any assistance on how I could use special characters in my variable would be greatly appreciated.非常感谢任何有关如何在我的变量中使用特殊字符的帮助。
wso2 apim v 1.10 wso2 apim v 1.10
Try with URL decoding with script mediator.尝试使用脚本中介进行 URL 解码。
<script language="js" description="Query Parameter Decoding Script">
mc.setProperty("DECODED_PARAM", encodeURIComponent(mc.getProperty('ENCODED_PARAM')));
</scrpt>
Reference: http://movingaheadblog.blogspot.com/2015/09/wso2-esb-how-to-url-encode-in-wso2-esb.html参考:http: //movingaheadblog.blogspot.com/2015/09/wso2-esb-how-to-url-encode-in-wso2-esb.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.