How do I take screenshots of pages behind a login?

Pages behind login are not accessible for us to take a screenshot since they require login credentials to access them. We currently support Basic HTTP Authentication. In order to generate screenshots for URLs with basic authentication, the URL should be in the following format: http://username:password@www.xyz.com