I’m not going to tackle the huge wall of text you posted, but I noticed a couple things worth mentioning.
First off, you make a GET request to the the auth url and then say nothing happens… Well, what do you expect to happen, have you programmed it do actually do anything with what you just requested? Also from what I can see of your code you’re not even providing all of the required parameters, such as response_type. Read the docs to see what parameters you need to send.
Secondly, that’s not even how OAuth works. You can’t just do a GET request to the auth url as all that will happen is you’ll get back the HTML from Twitch. For user access tokens you need to actually send the user to that URL so they go to it in their browsers, they will then see a Twitch page asking them to authorise your app, and if the do the user’s browser page will be redirected back to your redirect URL.
A lot of your issues are coming from your lack of understanding certain concepts, such as OAuth, HTTP requests, and things like that. You would be far better off trying to gain an understanding in the various pieces that are involved in utilising the Twitch API, and how to make use of them in your programming language by looking for specific modules, their documentation and guides on their use, rather than trying to brute force something together that works with Twitch without actually understanding how any of it works as you wont learn anything.