OKHttp handle 302
问题 Every time I perform a OKHttp Post request on this site, the response code is 302 and the response body is: <html> <head> <title>Object moved</title> </head> <body> <h2>Object moved to <a href="/GradebookSummary.aspx">here</a>. </h2> </body> </html> Here is my code: OkHttpClient client = new OkHttpClient().newBuilder() .followRedirects(false) .followSslRedirects(false) .build(); MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded"); RequestBody body = RequestBody.create