HttpListener Question
-
I've never used HttpListener before so excuse my ignorance. I need to call out to Google's People API and inspect the URL for things like Response Code, Scope, redirect URL, etc. I've found some examples of HttpListener on Google, but I've got some questions. 1. When I run sample HttpLister apps it throws an Access Denied error. It seems the app has to be run in Admin mode. This isn't an option. 2. HttpLister wants a URL and a port. I don't understand why a port is needed. I'm going to be opening the default browser to https://accounts.google.com/o/oauth2/v2/auth[^], and wait for a response as above. I looked at TcpListener which doesn't need Admin rights, but it expects an IP Address. What IP address??? I'm going to Google. I'm confused here. I also found this[^], which looks promising, but also needs an IPAddress and Port. Again, all I have is a URL. More confusion. Can someone shed some light here? Thanks
In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.