1. If the C parameter and D parameters are not URL encoded, you need to choose implementation as Java;
2. If you want to not set the implementation value, you need to do the C parameter D parameter urlencoding
1 Importjava.io.UnsupportedEncodingException;2 ImportJava.net.URLEncoder;3 Public StaticString UrlEncode (string result)throwsunsupportedencodingexception{4StringBuffer Urle =NewStringBuffer ();5String[] results = Result.split ("&");6 inti = 0;7 for(String tempstr:results)8 {9 intStart = Tempstr.indexof ("{"); Ten intEnd = Tempstr.lastindexof ("}") +1; One //the string combination to UrlEncode AString str =tempstr.substring (start, end); -String key = Tempstr.replace (str, ""); - //the message body of UrlEncode theString data = Urlencoder.encode (str, "UTF-8")); - if(I > 0) - { -Urle.append ("&"); + } - urle.append (key); + urle.append (data); Ai++; at } - returnurle.tostring (); - } -String req =UrlEncode (Parameters); - Log.info (req); -Vars.put ("req", req);View Code
JMeter interface HTTP request implementation do not select Java will error resolution method