Need help converting code from Java to Unity's C#

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("");
httppost.setHeader("User-Agent", "my header");
httppost.setHeader("Authorization", basicAuth);

@TehTechnomancer This website with convert Javascript (UnityScript) to C# for you. ^~^

Javascript to C# Converter