Home  >  Q&A  >  body text

java - 为什么httpclient4.4.1的post对方服务器收不到参数?

巴扎黑巴扎黑2765 days ago578

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-18 10:48:30

    Did you write the IP address correctly?

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:48:30

    Comment this line and try it

            httppost.setHeader("Content-Type", "text/html;charset=UTF-8");
           
           
    或者 这样    
        httppost.setHeader("Content-Type", "application/x-www-form-urlencoded");
        

    http://blog.csdn.net/Q_AN1314...

    reply
    0
  • Cancelreply