I'm trying to set headers for a simple HTTP request in SilkJS.. the request goes through fine but without my headers..
The curl.setHeader() method just returns 'undefined', from what I can read in the documentation (http://www.silkjs.net/documentation/builtin/curl#curl-setHeader), it should return integer 0 for success or an error code otherwise.. is 'undefined' some kind of error code ?!
Here's a simple test to reproduce the problem:
SilkJS> var curl = require('builtin/curl');
undefined
SilkJS> curl
[object Object]
SilkJS> var handle = curl.init('http://www.google.com/')
undefined
SilkJS> handle
[object Object]
SilkJS> var status = curl.setHeader(handle, 'asdf=asdf')
undefined
SilkJS> status
undefined