Git Product home page Git Product logo

Comments (1)

vkuznet avatar vkuznet commented on July 22, 2024

The code is in place, see
https://github.com/dmwm/WMArchive/blob/master/src/python/WMArchive/Service/Data.py#L35

and here is curl output which confirms that WMArchive returns 406 for misleading requests:

HEADERS="Content-type: application/json"
# define scurl as curl -k --key ~/.globus/userkey.pem --cert ~/.globus/usercert.pem "$@"

scurl -v -X POST -H $HEADERS -d '{"query":"bla"}' https://cmsweb-testbed.cern.ch/wmarchive/data
< HTTP/1.1 406 Not Acceptable
< Date: Fri, 09 Sep 2016 14:27:18 GMT
< Server: CherryPy/unknown
< Set-Cookie: cms-auth=7635e6def1b06c93ce6c9202552d4a8546f913cffb34cd956fe5b8ff671237be41cb38e2edcdb5d2;path=/;secure;httponly;expires=Thu, 01-Jan-1970 00:00:01 GMT
< Content-Length: 112
< X-Rest-Time: 1370.192 us
< Vary: Accept
< Etag: "e97e1835f02d088475defe4f095bc2a9bf42c283"
< X-Rest-Status: 100
< Content-Type: application/json
< CMS-Server-Time: D=40037 t=1473431238599979
<
{"result": [
 {"status": "Not supported, expect \"data\", \"query\" attributes in your request", "data": []}
]}

from wmarchive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.