Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GET request works in browser but not in POSTMAN or SOAPUI

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

enter image description here

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

enter image description here

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?

enter image description here enter image description here

like image 728
Victor Viola Avatar asked Mar 23 '16 19:03

Victor Viola


People also ask

How do you hit GET request in the postman?

Select the recently created request and enter the API endpoint where it says 'Enter request URL' and select the method (the action type) on the left of that field. The default method is GET but we will use POST in the example below.


1 Answers

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.

like image 191
Pingo Avatar answered Sep 18 '22 04:09

Pingo