title: Okhttp: get cookie from Set-cookie header in a series of redirects
body: <p>I can use <code>OkhttpClient</code> to send a <code>GET</code> request to the server and get the cookie in the final response properly(the response code of which is 200 )and the cookie of which can be retrieved using <code>addInterceptor()</code>.</p>
  
  <p>Request-> 302(Set-cookie<code>?</code>) -> 302(Set-cookie<code>?</code>) -> 302(Set-cookie<code>?</code>) ->200(Set-cookie√(can be get using interceptor))</p>
  
  <p>(the question mark <code>?</code> means don't know how to get)</p>
  
  <p>But the situation here is that there might be a series of redirects before the final response(200) is returned, the redirects carry the <code>Set-cookie</code> header. Is there any way using <code>Okhttp</code> to retrieve the cookies in the <code>Set-cookie</code> header in every <code>redirect</code>?</p>