HttpURLConnection: java.lang.IllegalStateException: Already connected

前端 未结 3 818
隐瞒了意图╮
隐瞒了意图╮ 2021-02-20 09:17

I\'m trying to use HttpURLClient to send some POST data to a server using the HttpRestClient class shown below. When executing

conn.setDoInput(true)         


        
3条回答
  •  走了就别回头了
    2021-02-20 09:29

    This might be due to watches while debugging in your IDE. See this answer. It happened to me and was hard to discover.

提交回复
热议问题