Saturday 26 October 2019

Http request in node vs python

So I wrote a script in python using the requests module, and a script in node using the request module. Both scripts consists of a simple http.post request that returns an object. Now, the difference is that the object returned in python is different from the object returned in node. Very different, for example in python it returns the token Id, firstname, lastname; and in node it returns the url, version, headers, useless stuff.... I can’t seem to understand how this could be possible. So can please anyone help me?

Submitted October 26, 2019 at 11:43PM by wavedrop_

No comments:

Post a Comment