public HttpRequest(final CharSequence url,final String method) throws HttpRequestException {
  try {
    this.url=new URL(url.toString());
  }
 catch (  MalformedURLException e) {
    throw new HttpRequestException(e);
  }
  this.requestMethod=method;
  setXsrToken();
}

public HttpRequest ( final CharSequence url , final String method ) throws HttpRequestException { try { this . url = new URL ( url . toString ( ) ) ; } catch ( MalformedURLException e ) { throw new HttpRequestException ( e ) ; } this . requestMethod = method ; setXsrToken ( ) ; }
create http connection wrapper
