如何发送httppost回复 [英] how to send httppost reply

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

问题描述

大家好;

我想在门户网站上接受httppost,但是我不知道如何以xml格式将响应发送到httppost的发件人.我也想获取httppost发件人的网址,我该怎么做?请帮忙.
在此先感谢

Muhammad Junaid Farhan

Hello to all;

i want to accept httppost on my portal but i dont know how to send response to the sender of httppost in xml form . i also want to get the url of the httppost sender how can i do that?? please help.
Thanks in advance

Muhammad Junaid Farhan

推荐答案

WebRequest request = WebRequest.Create(url); //Build request
// use it
WebResponse response = request.GetResponse();
Stream stream = response.GetResponseStream();
// You may want to deserialize the strea for usage now



您可以看到 XML反序列化 [



You can see XML deserialize[^] for the example of using XML for deserializing


这篇关于如何发送httppost回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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