I have made a simple proxy using HttpListener and HttpWebRequest/Response to edit and log http headers. Everything works fine and dandy over HTTP but HTTPS is a different story, I have read up on MSDN and its says HttpListener & HttpWebRequest/Response works over HTTPS. Obviously its me doing something wrong.
I have IE pointed to the prefixes below and I cant seem to catch the request.
string[] prefixes = new string[] { "http://127.0.0.11:8080/", "https://127.0.0.12:8081/" };
HttpListener listener = new HttpListener();
// Add the prefixes.
foreach (string s in prefixes)
{
_listener.Prefixes.Add(s);
}
Examples welcome and I'm a c# newb! :)