throw new DOMException(DOMException.SYNTAX_ERR, method + " is not a valid http method");
}
if (("CONNECT".equals(method)) || ("TRACE".equals(method)) || ("TRACK".equals(method))) {
throw new SecurityException(method + " is not allowed.");
}
WebWrapper webWrapper = WebWrapper.getInstance();
try {
URL baseURL = webWrapper.getBaseURL();
try {
URL urlObject = new URL(baseURL, url);
conn = urlObject.openConnection();
} catch (MalformedURLException e) {
throw new DOMException(DOMException.SYNTAX_ERR, url + " can not be resolved in the context of " + baseURL);