Add writing request to console.

Bugfixes with headers dict from settings