Pass cookie through programmatic API #41

seem that `cookie: [Array]` doesn't work, and it needs to be `cookie: [String, Array]`