phin
phin copied to clipboard
How to use basic auth that is part of URL
How can we pass basic auth credentials as part of the request url?
Example:
https://admin:[email protected]/basic_auth
const p = require('phin');
await p({
url: 'https://admin:[email protected]/basic_auth',
method: 'GET'
})
I'll do some research, create a test case, and get back to you on this.
We need to handle it in centra in this way - https://stackoverflow.com/a/11853077/5401310
@ASaiAnudeep you can look at my issue, I added the workaround, and it works for me.