Authored by Rong

commit by shell

... ... @@ -221,15 +221,16 @@
</HTTPSamplerProxy>
<hashTree>
</hashTree>
<JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="JSR223 Sampler" enabled="true">
<JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="AJAX" enabled="true">
<stringProp name="cacheKey">b04922f8-efaa-4390-bc5f-df25d02450bb</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="parameters">GEThttp://${HOST_PC}/common/suggestfeedback?callback=jQuery112407297836417199297_1506394331103&return_type=jsonp&client_secret=web&code=200&_=1506394331104 GEThttp://${HOST_PC}/guang/info/listData?ids=67249%2C67239%2C67157%2C67191%2C67189%2C67163%2C67161%2C67259%2C67287%2C67159%2C67279%2C67263%2C67113%2C67199%2C67261%2C67143%2C67153%2C67197%2C67141%2C67195&type=0 GEThttp://${HOST_PC}/passport/cert/headerTip?callback=jQuery112407297836417199297_1506394331103&_=1506394331105</stringProp>
<stringProp name="parameters">GEThttp://${HOST_PC}/common/suggestfeedback?callback=jQuery112407297836417199297_1506394331103&amp;return_type=jsonp&amp;client_secret=web&amp;code=200&amp;_=1506394331104 GEThttp://${HOST_PC}/guang/info/listData?ids=67249%2C67239%2C67157%2C67191%2C67189%2C67163%2C67161%2C67259%2C67287%2C67159%2C67279%2C67263%2C67113%2C67199%2C67261%2C67143%2C67153%2C67197%2C67141%2C67195&amp;type=0 GEThttp://${HOST_PC}/passport/cert/headerTip?callback=jQuery112407297836417199297_1506394331103&amp;_=1506394331105</stringProp>
<stringProp name="script">import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
... ... @@ -260,9 +261,9 @@ for (String url : urls) {
String postData = splitArr[1];
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost(currentURL);
StringEntity entity = new StringEntity(postData, Charset.forName(&quot;UTF-8&quot;));
entity.setContentEncoding(&quot;UTF-8&quot;);
post.setEntity(entity);
StringEntity entityStr = new StringEntity(postData, Charset.forName(&quot;UTF-8&quot;));
entityStr.setContentEncoding(&quot;UTF-8&quot;);
post.setEntity(entityStr);
HttpResponse response = client.execute(post);
HttpEntity entity = response.getEntity();
EntityUtils.consume(entity);
... ...