Uploaded image for project: 'SEAD'
  1. SEAD
  2. SEAD-299

sparql endpoint returns 403

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Blocking Blocking
    • 1.0
    • 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()

              jimmyers Jim Myers
              kooper Rob Kooper
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: