We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d05161 commit 5646cedCopy full SHA for 5646ced
push
@@ -31,11 +31,18 @@ else {
31
}
32
33
function go() {
34
- var path = '/input/' + options.public_key +
35
- '?private_key=' + options.private_key +
36
- '&' + options.field_name + '=' + options.data;
+ var path = '/input/' + options.public_key;
37
log(options.url+path)
38
- http.get({ host: options.url, path: path}, function(response) {
+ var postOptions = {
+ 'private_key': options.private_key
+ }
39
+ postOptions[options.field_name] = options.data;
40
+ http.request({
41
+ host: options.url,
42
+ path: path,
43
+ method: 'POST',
44
+ body: postOptions
45
+ }, function(response) {
46
response.on('error', function() {
47
console.log('error!')
48
process.exit(1)
0 commit comments