Cookie support added, https issue fixed.