Thank you, sedj. The session and methods are correct. Thanks to your advance I found the numbers of errors - one is 504 (authentification, so it's quite easy to solve once you know what it is) and the second - 554 (which I do not know what to do with; but at least I know what is wrong here).