来自C#的Http请求 [英] Http request from C#

查看:78
本文介绍了来自C#的Http请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!我已经努力搜寻了几天,但似乎无法弄清楚.

Hello! I have been searcing and trying for a few days, but cant seem to figure this out.

我需要将get请求发送到url,但似乎无法使其正常工作.我在统一C#中工作了

I need to send a get request to an url and cant seem to get it to work. I got it working in unity c#

下面的Se代码.

有人可以帮我重写此代码,使其在Visual Studio C#中工作吗?

Can anyone help me rewrite this so that it workes in visual studio c#?


推荐答案

雷神,

也许您可以使用WebClient类:

Maybe you could use the WebClient class:

https://msdn .microsoft.com/en-us/library/system.net.webclient(v = vs.110).aspx

我写了一些博客文章可能会有所帮助.该链接具有第一篇文章的链接,因此我只会发布第二篇文章.
http://geek-goddess-bonnie.blogspot.com /2014/08/revisiting-rest-proxy.html

I have written a couple of blog posts that might help. This has a link to the first post, so I'll only post this second one.
http://geek-goddess-bonnie.blogspot.com/2014/08/revisiting-rest-proxy.html


这篇关于来自C#的Http请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆