通过HTTP发送数据 [英] send data though HTTP

查看:131
本文介绍了通过HTTP发送数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想以某种格式(例如{email)将字符串数据发送到客户端网址(htt://abc.com/client) :foo@bar.com,timestamp:1322000095}



我们如何使用.net rest API执行此操作。



我将非常感谢您的快速回复。



问候

Santosh

Hi all,

I want to send string data to client url(htt://abc.com/client) in some format like {"email":"foo@bar.com","timestamp":1322000095}

How do we do this using .net rest API.

I would appreciate your quick response.

Regards
Santosh

推荐答案

Hello Santosh,



看看这个 MSDN文档。包含一个样本。



问候,
Hello Santosh,

Have a look at this MSDN documentation. Contains a sample too.

Regards,


你可以使用RestSharp



这很容易。并且您可以使用newtonsoft dll序列化响应



http://restsharp.org/ [ ^ ]
You can use RestSharp

It is so easy. And you can serialize response with newtonsoft dll

http://restsharp.org/[^]


这篇关于通过HTTP发送数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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