4 years ago (2015-06-10)  Hundred Encyclopedias |   First to comment  4 
post score 0 times, average 0.0

Class BYhttpClient Introduction

  • java.lang.Object
    • cn.wangbaiyuan.tools.BYhttpClient

    • Constructor Summary

      Constructor
      Constructors and instructions
      BYhttpClient(java.lang.String iurl, java.lang.String iencode)
    • Method summary

      All MethodsInstance MethodsConcrete Methods
      Qualifiers and types Methods and instructions
      java.lang.String sendHttpClientPOSTRequest(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> params)
      • Methods inherited from class java.lang.Object

        Equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    • Constructor details

      • BYhttpClient

        parameter:
        Iurl - root address, your server plus your project folder address
        Iencode - encoding format
    • Method details

      • sendHttpClientPOSTRequest

        parameter:
        Path - the URL to which you requested the URL relative to the file address of the root address
        Params - MAP format key-value pairs
        Returns: the string that completes the post request and gets the server's reply
        Throws:
        ClientProtocolException
        java.io.IOException
Self-made tool class BYhttpClient based on http post

Class BYhttpClient code

 

 

This article has been printed on copyright and is protected by copyright laws. It must not be reproduced without permission.If you need to reprint, please contact the author or visit the copyright to obtain the authorization. If you feel that this article is useful to you, you can click the "Sponsoring Author" below to call the author!

Reprinted Note Source: Baiyuan's Blog>>https://wangbaiyuan.cn/en/self-made-based-on-http-post-utility-class-byhttpclient-2.html

Post comment

Style

No Comment

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW