public void RequestNameWithMimeType(string url)
 {
     var client = new WebClient();
     client.Headers.Add("content-type", "application/x-www-form-urlencoded");
     client.Headers[HttpRequestHeader.Accept] = "application/json";
     _lastResponse = client.UploadString("http://localhost/fubu-testing/currentrequest/get", "FullUrl=" + url);
     _lastResponseContentType = client.ResponseHeaders["content-type"];
     _expectedResponse = new JavaScriptSerializer().Deserialize<ExpectedResponse>(_lastResponse);
 }
        public void RequestNameWithMimeType(string url)
        {
            var client = new WebClient();

            client.Headers.Add("content-type", "application/x-www-form-urlencoded");
            client.Headers[HttpRequestHeader.Accept] = "application/json";
            _lastResponse            = client.UploadString("http://localhost/fubu-testing/currentrequest/get", "FullUrl=" + url);
            _lastResponseContentType = client.ResponseHeaders["content-type"];
            _expectedResponse        = new JavaScriptSerializer().Deserialize <ExpectedResponse>(_lastResponse);
        }