I m trying to use bearer authorization using requestlibary of robot framework. Note: ${tokenval} getting value from another keyword. ${Body} value declared as a variable.
*** Test Cases ***
Createnew
${tokenval}= Get Token Client Credentials
${token1}= Catenate bearer ${SPACE} ${tokenval}
${headers} content-type=application/json Authorization=${token1}
Create Session apitest https://testxxapi.com ${headers}
${response}= POST On Session apitest /deals/new ${Body}
${resDict}= convert to dictionary ${response.json()}
log ${resDict}
But I m getting HTTPError: 403 Client Error. Same request with bearer authorization working in postman.