Changing connection to have proper header

after server was responsing 403rs because of invalid requests of the old
method