Twitter request_token 401 when providing oauth_callback



I am using Sign in with Twitter on my web-site and I can’t add an oauth_callback string to Authorize header - it leads to 401 Unauthorized. But when I don’t provide any oauth_callback strings it’s OK. I configured the callback URL in the App,but I want to have an opportunity to change it with requests.