2016-03-02 17 views

cevap

31
RequestBody reqbody = RequestBody.create(null, new byte[0]); 
    Request.Builder formBody = new Request.Builder().url(url).method("POST",reqbody).header("Content-Length", "0"); 
    clientOk.newCall(formBody.build()).enqueue(OkHttpCallBack()); 
+0

senindir cevap veya soru edilir ?? –

+1

Bu konuda yeni ne var? aynı [https://github.com/square/okhttp/issues/751](https://github.com/square/okhttp/issues/751) –

10

Bu benim için çalıştı:

RequestBody body = RequestBody.create(null, new byte[]{}); 
+1

veya 'RequestBody.create (null," ") var ' – mr5

İlgili konular