on ‎2025 Feb 10 9:39 PM
I'm trying to send a request using Java to the application e.g http://localhost:8080/api/admin/Addresses but I keep getting 401 unauthorized even though I'm sending the request with the required credentials. I'm using the admin user for this request so username is admin and password is also admin.
This is the Java code I'm trying to use to accomplish this:
It works when I'm sending it with Postman, Curl, I even tried to use Node.js and there were no issues but I can't seem to send the request with Java.
Request clarification before answering.
| User | Count |
|---|---|
| 13 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.