How is it possible that POST API working in Postman but not the retrofit?

拜拜、爱过 提交于 2020-04-30 06:42:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!