我正在尝试重新加载地理服务器目录,但出现以下错误:
远程服务器返回错误:(501) Not Implemented。
这是代码
WebRequest serverRequest =WebRequest.Create("http://xxxx:8080/geoserver/rest/workspaces");
serverRequest.Method = "RELOAD";
serverRequest.Headers["Authorization"] = "Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes(password));
WebResponse serverResponse;
serverResponse = serverRequest.GetResponse();
serverResponse.Close();