I'm trying to convert the following cURL command to pycurl but am unable to determine what the equivalent to --data-urlendcode is?
curl --connect-timeout 5 -u usr:pwd --data-urlencode "XML=<setBackground><background><image>http://1.1.1.1/Desktops/320x196x4/grad.png</image><icon> http://1.1.1.1/Desktops/320x196x4/TN-grad.png</icon></background></setBackground>" http://2.2.2.2:80/CGI/Execute