Re: [Python-Dev] How to set/update value in a xml file using requests in python

2018-02-12 Thread Sum J
Thanks Dan for your response. I have updated the data to be sent in xml format and now I am able to update the required fields using put request. data= ''' web-proxy.xx.com 8080 on ''' On Thu, Feb 8, 2018 at 10:15 PM, Dan Stromberg wrote: > This is more relevant to python

Re: [Python-Dev] How to set/update value in a xml file using requests in python

2018-02-08 Thread Dan Stromberg
This is more relevant to python-list than python-dev. I've added python-list to the To header. Gmail doesn't appear to allow setting a reply-to for a single message, so I've not set that; please, when replying, drop python-dev from the to: header. You'll likely want to set up some kind of REST en

Re: How to set/update value in a xml file using requests in python

2018-02-06 Thread dieter
Sum J writes: > My xml file is located in local network : > http://192.168.43.109/DevMgmt/NetAppsDyn.xml > > Below is a part content of above xml I want to update : > > > > > off > > > I want to set value for 'ResourceUI' and 'Port' field in above xml. > I have used below

How to set/update value in a xml file using requests in python

2018-02-06 Thread Sum J
My xml file is located in local network : http://192.168.43.109/DevMgmt/NetAppsDyn.xml Below is a part content of above xml I want to update : off I want to set value for 'ResourceUI' and 'Port' field in above xml. I have used below code : data = { 'R