Answer the question
In order to leave comments, you need to log in
Are there any options in HTTPS to get the request url?
Hey!
I sawed for my own needs on NODE a small proxy, which, in theory, was supposed to perform something similar to this application habrahabr.ru/post/184210
I.e. I run a script with a proxy server and a list of urls and set the proxy address in the browser settings.
Everything works great with http, I get chunks, if gzip - I unpack, add what I need, pack and send further.
But with https, it's a bummer, you should have foreseen this :( It
's impossible to get the URL :) I'm already silent about changing the data before sending.
Everything is so bad - there can not be any options here? I will be glad to any advice, or I will have to abandon this idea - because it will be a semi-working application. Thank you!
Answer the question
In order to leave comments, you need to log in
You must terminate SSL in your proxy, either on the client side or on the server side. Depending on the task. If you make a reverse proxy and you have a private key and the sites behind the proxy are your sites, then you can terminate it from the server side, and unencrypted HTTP goes to your sites. And if you want to do not a reverse, but a direct proxy and, accordingly, clients will go through you to a protected resource, then you need to do client termination, i.e. You interact with browsers over HTTP not encrypted, but with servers over HTTPS. In this case, and most likely this is what you need, you behave like a client browser, there is no difference for the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question