Use REST client to call multipart/form-data Rest web service

后端 未结 1 374
旧巷少年郎
旧巷少年郎 2021-01-02 04:00

I have a RESTeasy-based REST web service (see below). I\'m trying to use the google REST client to execute a request to test my service, but I\'m unsure as to how the reques

相关标签:
1条回答
  • 2021-01-02 04:37

    You need to add this header to your request:

    Accept-Encoding:multipart/form-data
    

    usually you use Content type like this:

    Content-Type: image/png
    

    You can test it with Postman REST client

    I've attached an image on how the form should be filled out.

    postman multipart/form-data

    0 讨论(0)
提交回复
热议问题