Skip to content
Advertisement

Difference between PHP and python post request?

i tried to connect to API. All auth I have good done, results are right. But response always take error code 2009 -> request is empty.

PHP that works

JavaScript

Python code -> reverse reverse engineering + documention

JavaScript

Can anyone help me with this specific problem?

Advertisement

Answer

To resemble the php code the data attribute must be formed as following:

JavaScript

that way the request should be the same as the PHP-Code one

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement