Forum How do I...?

Configure --http-user and --http-password in a file?

andyt
Hi, my instance of Prince needs to hit a site which has Basic Authentication. In theory I should be able to set --http-user and --http-password on the command line, but it turns out that because of our setup it's awkward for me to change the component that calls Prince to make it aware of the correct user/password. Does Prince happen to support a config file that I can drop them into? Perhaps a text file alongside the exe in which I can list a few site/user/pass pairings and for Prince to pick them up and use them when relevant?

Thanks
mikeday
No, we don't have a config file mechanism for Prince at the moment. Is it possible to place the HTTP username/password in the URL itself, like this:

http://username:password@server/path/to/file.html
andyt
OK thanks Mike, we have tried that and verified that it works. It's not quite as ideal as the config file, but it will do. Thanks!