It is currently Sun Feb 12, 2012 6:58 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: xml request
PostPosted: Wed Mar 03, 2010 5:16 pm 
Offline

Joined: Mon Jan 25, 2010 2:44 pm
Posts: 5
I have to send XML to a extern server but I don't know how to do that in Python.

at the moment I have that
Code:
import urllib,urllib2
request = urllib.urlopen("https://server",'C:\Users\simon\Desktop\requete.xml')
print request
opener = urllib.urlretrieve("https://server",'C:\Users\simon\Desktop/reponse.xml')
print request.read()


but the response is not correct :
Quote:
<xml><ERROR>Invalid Inbound XML Document</ERROR>


somebody have an idea?

_________________
simon debusschere


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP