I have the following cUrl command to send reqest to server
curl -k https://localhost:9200 -H "Authorization: Bearer eH8AIFX6PqyrmJ1cJLC"
in the server side I need to retrieve the token that is eH8AIFX6PqyrmJ1cJLC.
the line,
String access_token=request.header("Authorization: Bearer");
outputs : Bearer eH8AIFX6PqyrmJ1cJLC
But I only want to retrieve eH8AIFX6PqyrmJ1cJLC.
How do I do this.
Thanks.