Since version 2.1 TeamCity server supports basic HTTP authentication which allows to access certain web server pages and perform actions from various scripts.
Use valid TeamCity server username and password to authenticate using basic HTTP authentication.
tip
You may want to Using HTTPS to access TeamCity server the server to use HTTPS as username and password are passed in clear text during basic HTTP authentication.
To use basic HTML authentication instead of redirecting to login page, prepend path in usual TeamCity URL with "/httpAuth".
To trigger a build send HTTP GET request for the URL: http://<server address>/httpAuth/action.html?add2Queue=<build type Id> performing basic HTTP authentication.
Some tools (e.g. Wget) support the following syntax for basic HTTP authentication:
http://<user name>:<user password>@<server address>/httpAuth/action.html?add2Queue=<build type Id>