Fix in POST request, added debug line when HTTP auth needed