OkHttpClient implies that it can use HTTP/1.0. It can not.
There is a constant, Protocols.HTTP_1_0. However, setting the client to only use HTTP 1.0 will cause the check in https://github.com/square/okhttp/blob/master/okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java#L435 to trigger.
I am trying to use okhttp to talk to a server that only speaks HTTP 1.0 and it seems that this is not possible.
What happens if you attempt to connect to this server without configuring protocols? Does it work? I'm tempted to fix this by just adding some documentation to that API.
I have the same problem:
Response code: Response{protocol=http/1.0, code=500, message=Internal Server Error, url=https://wilhelm-gym.net/idesk/addr/my.php/}
It seems like OkHttp detects HTTP 1.0 where Browsers like Chrome detect HTTP 1.1
I worked around it by using HTTP_1.1 which then connected to that server successfully.
Needs documentation.
Hi I am still getting this issue Response{protocol=http/1.0, code=200, message=OK, url=http://} any solution