1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib2 req = urllib2.Request(url='http://xml.hotelresb2b.com/xml/listen_xml.jsp') req.add_data('Some data') resp = urllib2.urlopen(req) print resp.read()