Overview:

The error "Server returned HTTP response code: 401 for URL" occurs when running CSDT commands from the command-line.

Symptom:

If you're using Oracle WebCenter Sites 11gR1 BP1, the following error will occur when running CSDT commands from the command-line:

java.io.IOException: Server returned HTTP response code: 401 for URL: http://<www.mydomain.com>/cs/ContentServer?pagename=OpenMarket/Xcelerate/PrologA......