import socket

target_host = "127.0.0.1"
target_port = 80

# create socket object
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

# encode string to bytes for socket object's send method (python 3+)
request_string = "abc"
bytes_request = request_string.encode(encoding='utf-8',errors='strict')

# send data
client.sendto(bytes_request, (target_host, target_port))

# receive some data
data, addr = client.recvfrom(4096)

print(data)
1e22de281bb35fe4de5e5721185d57c82f74f34a
<mask token>

<mask token>
client.sendto(bytes_request, (target_host, target_port))
<mask token>
print(data)

<mask token>
target_host = '127.0.0.1'
target_port = 80
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
request_string = 'abc'
bytes_request = request_string.encode(encoding='utf-8', errors='strict')
client.sendto(bytes_request, (target_host, target_port))
data, addr = client.recvfrom(4096)
print(data)

import socket
target_host = '127.0.0.1'
target_port = 80
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
request_string = 'abc'
bytes_request = request_string.encode(encoding='utf-8', errors='strict')
client.sendto(bytes_request, (target_host, target_port))
data, addr = client.recvfrom(4096)
print(data)

import socket

target_host = "127.0.0.1"
target_port = 80

# create socket object
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

# encode string to bytes for socket object's send method (python 3+)
request_string = "abc"
bytes_request = request_string.encode(encoding='utf-8',errors='strict')

# send data
client.sendto(bytes_request, (target_host, target_port))

# receive some data
data, addr = client.recvfrom(4096)

print(data)