Added headers for ssl
Fixed oauth