For the body of a post request I'm trying to turn:
data = [
('p1', 'true'),
('table', 'f3'),
('ids', '/'R000000020/'')
]
into
p1=true&table=f3&ids='R000000020'
using
import urllib
payload = urllib.urlencode(data)
but I'm getting
'p1=true&table=f3&ids=%27R000000020%27'
How can I get this working correctly?
edit: I ended up using:
data = [
('p1', 'true'),
('table', 'f3'),
('ids', "'"+'R000000020'+"'")
]