Hi Andy, Thanks for your reply. Sorry for my late response.
Thanks & Regards, Manoj Kumar.R.K (413) 461-8938|www.rkmanojkumar.co.nr On Sun, Oct 21, 2012 at 3:21 AM, Andy Seaborne <[email protected]> wrote: > On 20/10/12 23:55, Manojkumar Rangasamy Kannadasan wrote: > >> Hi >> >> I am using Fuseki Sparql Endpoints to update data in TDB. When i issue a >> s-post command to update the data from a rdf file, i get "204 No Content" >> sesponse. But the data in the server got updated. >> >> But sometimes i get "201 Created" as response. >> >> Following is the command i issued: ./s-post >> http://localhost:3030/mydata default >> /Users//docs/Transaction.rdf >> >> Should i use s-post or s-update to insert new data to TDB? Also can >> someone >> please let me know the reason for getting 204 response code? >> > > Everything looks to be OK. > > 204 is a success code (all 2xx are success, not just 200) > > "204 No Content" means there is no content in the reply - no HTML message > for example. It is nothing to do with whether there is any data in the > server. It is just an idiosyncrasy of HTTP. > > "204 No content in this response" would be more accurate - "No Content" is > just the conventional text. It could be "Hey! That went well". > > 201 means that a new graph has been created - there wasn't one there > before (in Fuseki with TDB, empty graph and no graph look the same so you > can get 201 after emptying a graph, then putting something in it). If you > then POST to the same URI, after 201, you'll get a 204. All 2xx are success > codes - just variations of what detail they tell you. > > Andy > >
