Giter Site home page Giter Site logo

cn.hutool.http.HttpUtil#post(java.lang.String, java.lang.String) 这个方法按文档的标准参数调用报异常 about hutool HOT 5 CLOSED

songpaopao avatar songpaopao commented on June 19, 2024
cn.hutool.http.HttpUtil#post(java.lang.String, java.lang.String) 这个方法按文档的标准参数调用报异常

from hutool.

Comments (5)

looly avatar looly commented on June 19, 2024

这个远程接口失效或变更了。

我把test加ignore吧。

from hutool.

songpaopao avatar songpaopao commented on June 19, 2024

我想说明的是
cn.hutool.http.HttpRequest#body(java.lang.String, java.lang.String)
原因在于这个方法在标准参数的时候 无法正确解析到content type
理论上按照文档是要塞一个的

from hutool.

songpaopao avatar songpaopao commented on June 19, 2024

image
ho红框中的方法是进不去的

from hutool.

looly avatar looly commented on June 19, 2024

对啊,当传入的是a=1&b=2这种时,是www-form-urlencode形式,这个非JSON也非XML,也可以不传,则默认是这个格式。

from hutool.

songpaopao avatar songpaopao commented on June 19, 2024

没问题 我理解错了 我想成form表单了 我的

from hutool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.