HTTP Delete with Request Body issues

前端 未结 1 1652
隐瞒了意图╮
隐瞒了意图╮ 2021-02-06 13:28

Can anyone explain the following:

package com.foo.bar;

import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.ProtocolException;
import          


        
相关标签:
1条回答
  • 2021-02-06 14:19

    This is a limitation (I'd consider it to be a bug or at least a stupid feature) of HttpURLConnection. You're at least not the only one who encounters this when dealing with REST webservices using URLConnection.

    Consider using Apache HttpComponents Client instead.

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