import urllib2
request = urllib2.Request("URL HERE", data="<port>0</port>",
headers={'Content-Type': 'application/xml'})
u = urllib2.urlopen(request)
response = u.read()
I tried this but found out the XML is never getting to the server. I need the XML to get to the server at the same time the HTTP request does so the proper response is sent back.