GET request works in browser but not in POSTMAN or SOAPUI

筅森魡賤 提交于 2021-01-21 04:34:49

问题


I have the following endpoint: http://millennium.iwise.com.br:6017/api/millenium_eco/Tabelas_preco.lista

If I try to open via browser, it asks me credentials and then works fine - as seen on image below.

user: OData

password: 0d@t@123

If I send the same GET request using POSTMAN or SOAPUI I get 401 Unauthorized.

What I am missing here? Thank you in advance.

UPDATE:

I took the browser's header request and used the same in POSTMAN and I'm still receiving 401 Unauthorized. Is there a possibility of the endpoint's server is configured to reject all but browser's request?


回答1:


I got the exact same issue, requests working from the browser but not using postman.

Since postman syncs across devices, it maintains lot of cache info I believe. I clicked on my profile in the app and signed out from all the devices. I then started the app, did not sign in , I clicked on the "continue without signing in option" which is a link close to the bottom on the sign in page. Then I was able to run the requests via postman.

I then signed in and things were fine via postman.

Note: I always had the SSL certificate verification Off in setting for the request.




回答2:


I have also faced the same issue. It is working from my browser exactly when I provide the user name and password in the prompt window.

I resolved it by using the 'authorization' tab and select authentication type 'Basic Authentication' in the postman.




回答3:


I was having the same issue and didn't find any solution but it worked once I signed in from another postman account by deleting all the local data of postman. I do not have any idea about why that happened but it looks like it was some kind of setting that I had that caused this issue. I would recommend deleting local data and reset the postman setting if you are a beginner like me and have no idea what's going on.




回答4:


Without even signing in i got the same error. I deleted all the history of postman and ran it again , it serves the purpose.




回答5:


Try to go Postman Settings > And turn SSL verification Off

It will allow you to send/ receive request/ response from unsafe URLs



来源:https://stackoverflow.com/questions/36187109/get-request-works-in-browser-but-not-in-postman-or-soapui

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