问题
I'm trying to hit one login API, which also need some headers and body. with the latest version of retrofit, I tried to send headers in both way either with annotation or programatically way, but everytime it says error code 417, exception failed and error body is null, but in postman I'm getting proper reponse.
回答1:
you can use HttpLoggingInterceptor to compare requests and find out what is wrong.
来源:https://stackoverflow.com/questions/60332781/how-is-it-possible-that-post-api-working-in-postman-but-not-the-retrofit