code: public InputStream getInputStream() {
          try {
              return connection.getInputStream();
          }catch(SocketTimeoutException e){
              throw new HttpException("Failed URL: " + url +
                      ", waited for: " + connection.getConnectTimeout() + " milliseconds", e);
          }catch (Exception e) {
              throw new HttpException("Failed URL: " + url, e);
          }
      }
docs: Returns input stream to read server response from.
  
  @return input stream to read server response from.