Is it possible to disable following redirects in OkHttp 2.0?-open source projects square/okhttp

kibibyte

Seems like it isn’t possible, but it will supposedly make it into the next release, at least according to some of these comments on a related issue on Github.

Edit: It looks like it could be possible through OkUrlFactory, which is part of the okhttp-urlconnection submodule (still haven’t figured out the actual purpose of this, but it looks like an Http(s)UrlConnection replacement).

Edit 2: Actually, hang on; it looks like it is implemented on master. However, it also looks like this didn’t make it into the 2.0.0 release snapshot.