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); } }
public void SendRequest(DatabaseRequest request) { SendRequest(request, null); }