I have a program in python which scans all the CONNECT https requests from my browser and gives me the names of the servers, for example:
CONNECT server.example.com:443 HTTP/1.1
Host: server.example.com:443
Proxy-Authorization: basic aGVsbG86d29ybGQ=
returns me "server.example.com".
Now when I go to a random site I don't only get the name of the site but also all the services that the site is using like: 'www.apigoogle.com', 'beacons2.gvt2.com' (some multiple times) ect.
Now my question is how to filter these servers in python and get only the name of the site (once) that I entered?
What I want to get is basically a list of "real" entries like in google history for example and not all the requested connections.