Home > Back-end >  Hutool tools use
Hutool tools use

Time:09-16

Hutool of HttpRequest. Post () sends the form data at the same time, also send the body data, how to do?

Now add a form, after adding the body, the body will cover out of the form,

CodePudding user response:

The form data does not contain the body

CodePudding user response:

The form data is transmitted in the body, to increase body don't multipart way

CodePudding user response:

refer to the second floor tianfang response:
the form data is transmitted in the body, don't multipart way to increase body




So, I have an interface that he is using the address splicing way, and with the way the body mass participation,
When I was in use hutool both use seems to be no

CodePudding user response:

reference 1st floor KeepSayingNo response:
form data do not include body?


What do you mean?

Hutool not form method string concatenation in the address, the body is not

CodePudding user response:

reference citric acid sweet reply: 3/f
Quote: refer to the second floor tianfang response:
the form data is transmitted in the body, don't multipart way to increase body




So, I have an interface that he is using the address splicing way, and with the way the body mass participation,
When I was in use hutool two used together as if no


Generally, address stitching is the get method, body mass is the post method, the service side how to write? If you can send a interface definition
Hutool not solve, try the okhttp
  • Related