-
Bug
-
Resolution: Won't Fix
-
Blocking
-
None
-
None
-
None
When running the following code it will return a 403 on the latest version of Medici, this could be related to the rewrite of the security code:
import pycurl
|
import cStringIO
|
|
response = cStringIO.StringIO()
|
|
c = pycurl.Curl()
|
c.setopt(pycurl.URL, 'http://medici-michigan.ncsa.illinois.edu/resteasy/sparql')
|
c.setopt(pycurl.POSTFIELDS, 'query=SELECT ?object WHERE { <tag:medici@uiuc.edu,2009:data_iPGDa-ZbeNYaYTurYmAP3A> ?p ?object. }')
|
c.setopt(pycurl.WRITEFUNCTION, response.write)
|
c.setopt(pycurl.USERPWD, 'username:password')
|
c.setopt(pycurl.VERBOSE, 1)
|
c.perform()
|
c.close()
|
|
print response.getvalue()
|