使用HTTPClient效果很好。
protected static String createUrl(List<NamevaluePair> pairs) throws URIException{ HttpMethod method = new GetMethod("http://example.org"); method.setQueryString(pairs.toArray(new NamevaluePair[]{})); return method.getURI().getEscapedURI();}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)