import urllib url = "http://www.bulksms.co.uk:5567/eapi/submission/send_sms/2/2.0" url += "?username=myusername&password=xxxxxx&message=Testing+from+Python&msisdn=44123123123" f = urllib.urlopen(url) # Read from the object, storing the page's contents in 's'. s = f.read() # Print the contents print s f.close()