Re: post xml payload with urllib

2007-08-14 Thread mirandacascade
On Aug 14, 11:57 am, brad <[EMAIL PROTECTED]> wrote: > Has anyone sent an xml payload via post using urllib? Haven't used urllib, but have used urllib2 to do a POST. Might something like this work... import urllib2 logon_request = """ "the_password" "the_user" """ req = urllib2.Reques

post xml payload with urllib

2007-08-14 Thread brad
Has anyone sent an xml payload via post using urllib? I'd like to do something like this: logon_request = """ "the_password" "the_user" """ logon = urllib.urlopen("https://127.0.0.1/api/version/xml";, logon_request) print logon.read() logon.close() 127.0.0.1 expects xml via a https connec