Created
February 11, 2014 19:43
-
-
Save max-mapper/8942594 to your computer and use it in GitHub Desktop.
dat cors test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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