How do I make a case request from the Pacer.gov API?
I am trying to make a request to an API called Pacer.gov. I'm expecting a file to be returned, but I'm not getting it. Can someone help me with what I'm missing? So my C# Rest call looks like this: (The variable PacerSession is the authentication cookie I got (with help from @jonathon-reinhart); read more about that here: How do I use RestSharp to POST a login and password to an API? ) var client = new RestClient("https://pcl.uscourts.gov/dquery"); client.CookieContainer = new System.Net.CookieContainer(); //var request = new RestRequest("/dquery", Method.POST); var request = new RestRequest