Forum Discussion
Hi,
I used below mention code but i need to add authorization (username, password, basic type). Can you please provide solution how to add authorization for below code.
Thanks,
Basic Authentication just means adding an extra header called Authorization. The value is the username and password encoded to Base64.
requestHeaders << ["Authorization": "myusername:mypassword".getBytes().encodeBase64() ]
- suresh_aitha7 years agoNew Contributor
Thanks for providing the solution but still its not working. We may need to provide pre-emptive Authentication - Authenticate pre-emptively. How to add this in above header. Please find attached screenshot from the soapui tool.
If you have Automation framework for Groovy script like getting the urls from xml, excel or properties files and send the request and verify the response and send those results to some file. Can you please share and help me on this. Thank you.
Related Content
- 2 years ago
- 4 years ago
- 4 years ago
Recent Discussions
- 15 years ago