You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, as mentioned in #24, -u option is not processed.
Second, the data field does not work in requests. To make it work, I had to change the first line for data = {'grant_type':'client_credentials'}.
In conclusion, your tool should have return this:
It looks like the only different between a string data = 'grant_type=client_credentials'
and a dict literal data = {'grant_type': 'client_credentials'}
is that the dict literal magically adds a content-type header.
Content-Type: application/x-www-form-urlencoded
I'm going to add support for dict literals when the input string looks like it's a series of url-style keys and values.
Hi
First of all thanks for your useful tool.
I had an issue by parsing the following curl command:
Your tool returns this:
First, as mentioned in #24,
-u
option is not processed.Second, the
data
field does not work in requests. To make it work, I had to change the first line fordata = {'grant_type':'client_credentials'}
.In conclusion, your tool should have return this:
Regards,
Clément
Usefull links:
The text was updated successfully, but these errors were encountered: