Answer the question
In order to leave comments, you need to log in
How to delay until the HTTP response is fully loaded?
Please tell me how to solve the problem:
If you do not add "stage 2", then without waiting for the response to be loaded, it will be written immediately to the buffer, and instead of a full page, you get something that managed to load in a short period of time.
How can I check the complete loading of the response to a GET
request without sleep()? I used it so that the page would have time to load in 1 second
\r\n User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0\r\n Accept-Encoding: gzip\r\n Accept: text/html\r\ n Connection: Close\r\n\r\n")
2. #time.sleep(1)
3. data = (sock.recv(2048000))
4. print(data)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question