It seems that when a key in data has a value of None, the key isn\'t included by requests.
data
None
>>> req = requests.Request(\'PO
I had the same question few days ago and if you replace data with json it should work for you, as now None will be sent in the body.
request('POST', 'http://google.com', json=dict(a=None, b=1))