java在模拟http请求时没法提交

java在模拟http请求时无法提交在用post方式提交的时候出现无法提交的情况,需要设置contenttype如下:reqEnt

java在模拟http请求时无法提交
在用post方式提交的时候出现无法提交的情况,需要设置contenttype如下:
reqEntity.setContentType("application/x-www-form-urlencoded");