Unity GET/POST Wrapper
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is a Unity3d in C# question. The goal is to create an object such that I can pass in a URL and receive data via GET , an object that I would create the would be a wrapper for the WWW logic. I would also like a 'POST' object too, where I could supply a url and a 'Dictionary' of key-value pairs as the post arguements. Sooo... we ultimately would like something like this: get_data = GET.request("http://www.someurl.com/somefile.php?somevariable=somevalue"); AND post_data = POST.request("http://www.someurl.com/somefile.php", post) // Where