Access API REST on vb.net Winform

Hello , i have a problem to access api rest from an external vb.net program .
If i use a browser , access authentication form , ok , json result is send in a file .
With a request , i send authentication on the headers , but doesnt work , the result was the authentication form …
Thanks for your help

Hi @bDurtaut

Since 5.3, you can use Basic authentication method. Simply sends HTTP requests with the Authorization header that contains the word Basic word followed by a space and a base64-encoded string username:password. Make sure to enable direct basic authentication
You can still use form based authentification but you have to deal with session and cookies.

Hope it will help

Thanks, i do it… But doesnt works

it s work en postman, but doesnt in vb.net

It s ok , bad request