I haven't used this script yet, but I wanted to point out that if you use challenge-response auth, you may not need to do a getchallenge/response with every call; you should instead be able to make an XML-RPC call once for sessiongenerate, which will give you a cookie; I believe you should then be able to use the "cookie" auth_method and send two extra headers: "X-LJ-Auth: cookie" and "Cookie: ljsession=$cookie", where $cookie is the value you got from sessiongenerate.
It's been a while since I've tried this though, and I forget whether it worked or not. I should try again.
no subject
I haven't used this script yet, but I wanted to point out that if you use challenge-response auth, you may not need to do a getchallenge/response with every call; you should instead be able to make an XML-RPC call once for sessiongenerate, which will give you a cookie; I believe you should then be able to use the "cookie" auth_method and send two extra headers: "X-LJ-Auth: cookie" and "Cookie: ljsession=$cookie", where $cookie is the value you got from sessiongenerate.
It's been a while since I've tried this though, and I forget whether it worked or not. I should try again.