#!/usr/bin/env python import httplib, platform connection = httplib.HTTPConnection('daemon', 6996) connection.request("MEDIA", "*", """ //%s/DMXXXX$ 01 E-Pro.wma Beck E-Pro Guero [Deluxe Version] Rock """ % (platform.node())) connection.getresponse() connection.close()