HttpURLConnection c = URL.openConnection(); c.setRequestProperty() Doesn't work

后端 未结 2 1686
灰色年华
灰色年华 2021-01-01 07:37

This Code here is a normal Java application not an android application, this is designed to send C2DM messages to a device with YOUR_REGISTRATION_STRING as the developer wit

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-01 08:09

    The content length is set automatically. You can't set it yourself directly. You can however pass the correct length when setting fixed length streaming mode.

提交回复
热议问题