03.12.2018, 07:49
400 bad request is triggered by this line (invalid HTTP header):
Remove this line or replace empty string with 0 and try again.
Code:
['content-length'] = '',
Remove this line or replace empty string with 0 and try again.