예제 #1
0
        public void SendRequest(DatabaseRequest request, string args)
        {
            RequestData result = request.Encoder(args);

            if (result == null)
            {
                CreatePageError(ErrorTypes.InvalidRequest);
                return;
            }

            try
            {
                SendData(request.URL + result.Get, HttpMethod.Post, result.Post,
                         request.Type, request.ActionType);
            }
            catch
            {
                _waitingForRequest = false;
                CreatePageError(ErrorTypes.WebError);
            }
        }
예제 #2
0
 public void SendRequest(DatabaseRequest request)
 {
     SendRequest(request, null);
 }