Hi, everyone
I am using OkHttp Engine for HttpClient.
And for POST request I am using EmptyContent body-type
But OkHttp still complaining : POST requests must have Body. Setting EmptyContent is not enough? How can I set dummy empty bode?
e
e5l
03/18/2019, 1:29 PM
Hi, @Nikolai. You could try to pass empty string.
r
Riccardo Montagnin
03/18/2019, 2:27 PM
@Nikolai Try setting the header
Content-Length
to
0
n
Nikolai
03/19/2019, 12:28 AM
@e5l, @Riccardo Montagnin Thank you, setting empty string is working. If it will be not enough I will try to add header.