Suppose i have a POST endpoint that accepts user id from request.getUserprincipal() of the httpservlet request and if i am calling this endpoint from another application using HttpURLConnection how can i pass the userprincipal value ?
Suppose i have a POST endpoint that accepts user id from request.getUserprincipal() of the httpservlet request and if i am calling this endpoint from another application using HttpURLConnection how can i pass the userprincipal value ?