My try at creating a .net-ish request method in php