Removed dependency on HTTPUrlConnection.