January 9th, 2004, 09:11 PM
Join Date: Nov 2003
Time spent in forums: < 1 sec
Reputation Power: 10
Just noticed in the script you posted to the python list that you had Content Length misspelled. If thats not the problem, heres my best shot ;-)
Ok, I thought I had saved some of the script that I had used, it looks like the only thing I have is an old test script, but IIRC, it should still work. Here's your script modified.
# triple quotes make it a little easier to read
# and also speed it up a wee bit, no concat
soap = """<?xml version="1.0" encoding="utf-8"?>
xmlns="EDIT:PUT YOUR NAMESPACE HERE">
# assuming its on port 80
conn = httplib.HTTPConnection('insidecoair5', 80)
# so we can see our debug messages, and the
# actual packet the script will be sending
#n = conn.send(data)
conn.request('POST', 'EDIT: PUT YOUR PAGE ACTION HERE', soap,
'SOAPAction':'EDIT: REPLACE THIS WITH YOUR ACTION'})
resp = conn.getresponse()
data = resp.read()
# our returned packet
Lemme know if that helps any. If it doesn't work, post the entire debug output (or PM it to me if its sensitive in nature and you don't want it posted in the forums).
EDIT: Removed some of the page stuff because it put quotes around it. Just replace the EDIT stuff with the logical thing that goes there ;-)
Last edited by oxygenthief : January 9th, 2004 at 09:13 PM.