简体   繁体   中英

GET Request with body/multipart form data in Java

Is there any way to send such request, even with external libraries?

Nope. GET doesn't have a body. GET means you are trying to fetch a resource. So GET doesn't need any Content-Type header.

Multipart body is sent to upload something. That means it is used to create/update resource. So only POST & PUT works with multipart body. If someone is trying to use multipart with GET, it is conceptually wrong.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM