The string data validates well with the online validator. 2015-07-03 15:24 GMT+01:00 Ian Dunlop <[email protected]>:
> Hello, > > Here is the output from my curl request which shows all the request and > response headers. There aren't really many headers needed. Check your > Authorization one.... > > curl --verbose -u [email protected] -X POST -H "Content-Type: > application/json" -d@wf_enc2.json http://heater > .cs.man.ac.uk:3000/workflows.json > Enter host password for user '[email protected]': > * Hostname was NOT found in DNS cache > * Trying 130.88.193.100... > * Connected to heater.cs.man.ac.uk (130.88.193.100) port 3000 (#0) > * Server auth using Basic with user '[email protected]' > > POST /workflows.json HTTP/1.1 > > Authorization: <removed :) > > > User-Agent: curl/7.37.1 > > Host: heater.cs.man.ac.uk:3000 > > Accept: */* > > Content-Type: application/json > > Content-Length: 39759 > > Expect: 100-continue > > > * Done waiting for 100-continue > < HTTP/1.1 201 Created > < X-Frame-Options: ALLOWALL > < X-Xss-Protection: 1; mode=block > < X-Content-Type-Options: nosniff > < X-Ua-Compatible: chrome=1 > < Location: http://heater.cs.man.ac.uk:3000/workflows/2 > < Content-Type: application/json; charset=utf-8 > < Etag: "61640e9efd5cbb04b9735c09dd228077" > < Cache-Control: max-age=0, private, must-revalidate > < X-Request-Id: d1dd1043-c78b-447d-9533-ee18ad581608 > < X-Runtime: 0.902580 > * Server WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08) is not blacklisted > < Server: WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08) > < Date: Fri, 03 Jul 2015 12:36:34 GMT > < Content-Length: 386 > < Connection: Keep-Alive > < > * Connection #0 to host heater.cs.man.ac.uk left intact > {"id":2,"title":"Fetch today's xkcd comic","description":"Use the local > java plugins and some filtering operations to f > etch the comic strip image from http://xkcd.com/\n\nBased on the > FetchDailyDilbert workflow.","url":"http://heater.cs.m > an.ac.uk:3000/workflows/2.json","user":{"id":2,"name":"Ian > Dunlop"},"created_at":"2015-07-03T12:36:34.020Z","updated_at > ":"2015-07-03T12:36:34.020Z"} > > > Cheers, > > Ian > > -----Original Message----- > From: alaninmcr [mailto:[email protected]] > Sent: 03 July 2015 14:58 > To: [email protected] > Subject: Re: GSOC Taverna Mobile: Uploading workflows to the Taverna player > > Larry, > > It is worth using a tool like http://jsonlint.com/ to validate the format > of the JSON you are sending. > > Alan > > -- *Akah Larry N.H* *Lead Software Engineer @ GiftedMom* *Founder IceTeck Inc* *www.iceteck.com* Developing technologies for emergence and sustainable development.
