URLConnection Error - java.io.IOException: Server returned HTTP response code: 400 for URL

后端 未结 2 1853
广开言路
广开言路 2020-12-30 02:05

I am trying to connect to a URL from a desktop app, and I get the error indicated in the Title of my question, but when I tried to connect to the same URL from servlet, all

2条回答
  •  攒了一身酷
    2020-12-30 02:37

    I finally found the problem. Of course it's my code. One part of the code I didn't post is the value of data. data must contain only name and description but I am passing more than name and description.

提交回复
热议问题