changes connection method from HTTP Get to HTTP Post