Get and post methods with callback funktions