RinaR,
If you are required to have a username / pass word or certificate of some sort you need to ensure you have this setup. If you post your script I can take a look at it. If you are prompted for any security information such as a certificate, you have to add it in there using a web set cert command in LR. During recording LR should prompt for this and record it as such, but errors can be made.