* Fixed #124: Added Content-Type json to HTTP headers * Moved setting header after creation of request