I want to use GeoNetwork CSW HTTP services from a full Java stack client, and not web client, mainly to use HTTP transactional service.

I'm always redirected on the login HTML page after making a post login request with the proper credential. I receive session id cookies correctly, and I provide it to next level transactional POST request, but I always receive the login HTML page as answer.

My use case is to fill up the CSW catalog in a programmatic way, and not thanks to the web sheet.

Does any tutorial exist on that way of working with GeoNetwork CSW?