I need to communicate with legacy php application. The API is just a php scripts than accepts get requests and return a response as XML.
I'd like to write the communication in C#.
What would be the best approach to fire a GET request (with many parameters) and then parse result?
Ideally I would like to find something that easy as the python code below:
params = urllib.urlencode({
'action': 'save',
'note': note,
'user': user,
'passwd': passwd,
})
content = urllib.urlopen('%s?%s' % (theService,params)).read()
data = ElementTree.fromstring(content)
...
UPDATE: I'm thinking about using XElement.Load but I don't see a way to easily build the GET query.