The original code using Apache’s HttpClient, HttpPost, HttpResponse, and HttpEntity. I’m trying to use them to access Reddit’s json API, but I don’t know for sure if WWW, wwwForm. or System.Net’s HttpWebRequest and HttpWebResponse stuff is used for the same thing. This is my first time trying to use an API or use these classes, so go easy on me!
If you need to know, here is a snippet of code from the java class:
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("https://www.reddit.com/api/v1/access_token");
httppost.setHeader("User-Agent", "my header");
httppost.setHeader("Authorization", basicAuth);