I'm doing a POST to a web server of a MultipartEntity to upload a file. Apache HttpComponents version 4.1.
The response I get is a 302 redirect. If I use a BasicResponseHandler that throws a ClientProtocolException. (The JavaDoc for BasicResponseHandler says that client may follow a redirect, which is pretty vague!)
The docs led me to believe that the client would automatically follow a redirect and return that response. I explicitly set HANDLE_REDIRECTS true in the client parameters.
What am I missing here?