1 2 3 4 5 6
data = urllib.urlencode(values) req = urllib2.Request('http://dumpz.org/' ,data,{'Content-type':'application/x-www-form-urlencoded'}) res = urllib2.urlopen(req) link = res.url msg = L('Posting by URL: %s') % link except: