I send an HttpURLConnection with setInstanceFollowRedirects(true) and POST , I get a redirect response that looks like this:
HTTP/1.1 302 Found Server: nginx Date: Wed, 09 Jan 2013 20:47:56 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Status: 302 Found Status: 301 Moved Permanently Location: http://foo.bar/...
And the next request that the JVM sends is a GET request (to the correct, redirected URL). It also seems to remove one of the HTTP headers added to the original request.
FYI, I do not use HttpURLConnection directly, but rather through the shell framework Framework.
My question is a known issue with Java (Sun JVM 1.7.0)? Or could it be a bug in the Play Framework?
source share