Added user-agent support, fixed missing content-type warning