Hello All
My Code:
import httplib
import urllib
conn = httplib.HTTPConnection("myfisheye:2003")
args = urllib.urlencode({'userName':'myuser', 'password':'mypassword'})
#args = urllib.urlencode({'FEAUTH':'myuser:1:xxxx50713b31b7859c9c0cd6f19e4568b372e992'})
headers = {'Accept':'application/json','Authorization':'Basic', 'Content-Type':'application/json'}
r1 = conn.request("post","/rest-service/auth/login",args,headers)
#conn.request("get","/rest-service-fecru/admin/groups",args,headers)
r2 = conn.getresponse()
print r1,r2.status,r2.reason,r2
Response I get:
/home/myuser/env3/bin/python /home/modha.k/PycharmProjects/mysample/test.py
None 404 Crucible is not enabled <httplib.HTTPResponse instance at 0xc29248>
hello world
Process finished with exit code 0
Can you please let me know what could be the issue.
Thanks
Abe