Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import os
from http.client import HTTPSConnection
from time import sleep
def request():
connection = HTTPSConnection('httpbin.org')
connection.request('GET', '/headers')
return connection.getresponse().read()
if __name__ == '__main__':
print(request())
if os.fork() == 0:
print(request())
else:
sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.