Authenticating to Jazz via Python
Kevin Murphy (19●1●2●8) | asked Oct 12 '11, 11:14 a.m.
I'm trying to connect to Jazz via Python to do some OSLC testing. I found some old code here and have updated it a bit. I keep getting a 408 Server Timeout Error.
I'm wondering if anyone can give me some troubleshooting advice? Also, if I've posted to the wrong forum, please let me know.
Here's the code:
Colin Thorne (214●2●6●19) | answered Oct 21 '13, 12:20 p.m.
Although this is an old question this was the first hit I found on the forum when searching for python and authentication. Therefore I thought I would provide an answer in case anyone else comes across it.
I have just been trying to authenticate to jazz via python, and and the only part missing from the original code is to save the new cookie which is returned after the authentication. This seemed to be a change when we moved from RTC 3.1 to RTC 4.0 (in RTC 3.1 the cookie was the same from the first call).
You'll notice that the curl command in another answer saves the cookie in both cases (using -b %COOKIES%) .
Hope this helps. Regards, Colin.
Daniel Toczala selected this answer as the correct answer
2 other answers
Aaron Shepherd (37●1●1●7) | answered Apr 03 '13, 3:13 p.m.
Hi Kevin, Total shot in the dark on responding to this, but did you ever resolve your issue? I am currently trying to do the same thing and am also running into 408 responses from my RQM server.
I don't know python, but here is a short curl batch file that may help