public static DefaultHttpClient createDevConsoleHttpClient(int timeoutMillis) {
		DefaultHttpClient result = createDefaultClient(timeoutMillis);
		result.setRedirectStrategy(new DefaultRedirectStrategy() {
			@Override
			public boolean isRedirected(HttpRequest request, HttpResponse response,
					HttpContext context) throws ProtocolException {
				  boolean isRedirect=false;
		            try {
		                isRedirect = super.isRedirected(request, response, context);
		            } catch (ProtocolException e) {
		                e.printStackTrace();
		            }
		            if (!isRedirect) {
		                int responseCode = response.getStatusLine().getStatusCode();
		                if (responseCode == HttpStatus.SC_MOVED_TEMPORARILY || responseCode == HttpStatus.SC_MOVED_PERMANENTLY) {
		                    return true;
		                }
		            }
		            return isRedirect;
			}
		});
		result.addRequestInterceptor(new HttpRequestInterceptor() {
			public void process(HttpRequest request, HttpContext context) {
				addCommonHeaders(request);
			}
		});
		addGzipInterceptor(result);

		return result;
	}