Eddie Noreaga
Eddie Noreaga

Reputation: 48

Okhttp websocket fails to connect over proxy

My mobile ISP has configured proxy.

This proxy redirects at some point with 200 OK. Which is not by WS standard as it expects http status code 101.

When i curl same request it prints out correct http status code 101 and establishes connection. Via OkHttp lib it fails to connect... Any help?

Upvotes: 0

Views: 603

Answers (1)

Eddie Noreaga
Eddie Noreaga

Reputation: 48

In OkHttp.Builder set proxy to Proxy.NO_PROXY

Upvotes: 1

Related Questions