github API - using curl PUT to add a repo to a team
问题 I am trying to add a repo to a team on github, thus: curl -i -u username:password -X PUT -d "" https://api.github.com/teams/:team/repos/:user/:repo (specifics left out) Pretty much as indicated in the not so verbose documentation. This gives a 500 Internal server error . If I leave out the -d"" it gives a 411 "Content-Length required" , if I specify (using -H ) "Content-Length: 0" : again the 500 error... Any clues? [edit] Answer: the API was giving spurious responses and the docs are not