httplib HTTPConnection request problem
pythonhda
pythonhda at yahoo.com.replacepythonwithlinux
Wed Mar 31 17:33:36 EST 2004
First make sure that you urlencode the xml like the docs do:
params = urllib.urlencode({'xml': xml})
Make sure the key is something the server is expecting. Then make sure you call request properly:
self.h1.request('POST', self.server+"/servlet/webdav.calendar/conflict.xml",
params, headers)
Notice that params comes before headers.
Not tested but that looks like what your problem might be...
phda
On 31 Mar 2004 10:02:45 -0800
scummer at 3squares.com (scummer) wrote:
> #headers = {"Accept-Language": "de, en-us;q=0.2", "Translate": "f",
> "User-Agent": "SLOX HolidayInfo", "Host": confDict['server'],
> "Content-Length": str(len(xml)), "Authorization": "Basic
> "+str(confDict['base64Auth'])}
> #self.h1.request('POST',
> self.server+"/servlet/webdav.calendar/conflict.xml", headers, xml)
More information about the Python-list
mailing list