I wrote a simple HTTP client and server in Python for experimenting. The first code snippet below shows how I send an HTTP GET request with a parameter named imsi. In the se
cgi module contains FieldStorage class which is supposed to be used in CGI context, but seems to be easily used in your context as well.
cgi
FieldStorage