Hey,
I'm trying to make a python script that accesses a server see the response from the server and use that response to make Post request.
The response is in XML and I need to make multiple post requests with the values between tags.
Any library or recommendation?
Example:
I'm trying to make a python script that accesses a server see the response from the server and use that response to make Post request.
The response is in XML and I need to make multiple post requests with the values between tags.
Any library or recommendation?
Example:
Code
#!/usr/bin/env python
import requests
i = 1
while True:
bucket = requests.get("https://server.com/")
print (bucket.text.encode('ISO-8859-1'))
print (len(bucket.content))
r = requests.post("http://server.com", data={'number': 12524, 'type': 'issue', 'action': 'show'})
i = i + 1
if(i > 100):
break
input('Press ENTER to exit')

![[Image: YZs1dv2.jpg]](https://i.imgur.com/YZs1dv2.jpg)
