small doc changes
This commit is contained in:
4
main.py
4
main.py
@@ -18,7 +18,7 @@ def generate_request():
|
||||
global USER_AGENT
|
||||
global REQUEST
|
||||
USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
|
||||
REQUEST = "GET / HTTP/1.1\r\nHost: %s\r\nConnection: close\r\nUser-Agent: %s\r\n\r\n" % (HOST_REQUEST, USER_AGENT)
|
||||
REQUEST = "GET / HTTP/1.1\r\nHost: %s\r\nConnection: close\r\nAccept-Encoding: Identity\r\nUser-Agent: %s\r\n\r\n" % (HOST_REQUEST, USER_AGENT)
|
||||
return
|
||||
|
||||
def pull_external_url(text):
|
||||
@@ -187,7 +187,7 @@ def main():
|
||||
# Obtain data from response
|
||||
fr = ""
|
||||
while True:
|
||||
r = w.recv(8192)
|
||||
r = w.recv(32768)
|
||||
if not r:
|
||||
break
|
||||
fr += r.decode()
|
||||
|
||||
Reference in New Issue
Block a user