Skip to content

Instantly share code, notes, and snippets.

@max-mapper
Created February 11, 2014 19:43
Show Gist options
  • Save max-mapper/8942594 to your computer and use it in GitHub Desktop.
Save max-mapper/8942594 to your computer and use it in GitHub Desktop.
dat cors test
var request = require('browser-request')
request('http://test.local:6461', function(err, resp, body) {
console.log('root', err, resp, body)
})
request('http://test.local:6461/_package', function(err, resp, body) {
console.log('package', err, resp, body)
})
request.post({url: 'http://test.local:6461', json: {"hello": "world"}}, function(err, resp, body) {
console.log('post', err, resp, body)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment