How google chrome processes html pages?

Browser - Google chrome
Programming language - python


So, i request a page using google chrome web browser, i stop this request from sending to network using windivert ( pydivert ), i use my scripts to send this request trough my vpn server, and then vpn server sends me answer ( html page ).

s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind((HOST, PORT))
conn, addr = s.accept()

Then on a client

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
while True:
 data = s.recv(4096)
 if data:
  data2 = data.decode('utf-8')

I receive a html. So, the question is, how do i use this html? How do i "answer to a request" of this browser, so it loads this page?

So, what do i do? Some kind of - adding this page to google chrome cache?

Read more here:

Content Attribution

This content was originally published by BaronRandom at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: