I don't know very much about BM, and I am having a hard time finding documentation to help me on my task.
I have a java class that downloads a file from the internet, and needs to access a URL through BM proxy. If a user is already logged (manually opening a web browser), the file is downloaded successfuly. If the user is not logged in, my class makes an HTTP request to the url, and gets redirected to the BM login page.

I tried to simulate the login by submiting a new HTTP POST request to the <proxy>:<port>/BM-Login/auth-cup, but i dont think this is the right path, or i am missing something.

Does anyone know where I can find documentation or some example code to guide me?

Thanks in advance