解析HTTP Post响应 [英] Parsing HTTP Post reponse

查看:84
本文介绍了解析HTTP Post响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



目前,我正在参与一个项目,该项目使用HTTP POST将变量发布到PHP.

我可以使用哪种方法或方法将响应解析为网页?

目前,我只能将响应显示为文本.

Hi,

Currently I''m involved in a project which make use of HTTP POST to post a variable to a PHP.

Which method or way can I use to parse the response into a web page?

Currently I''m only able to display the response as text.

推荐答案

如果您在.NET Guise中使用C ++,则有HttpWebRequest在system.web中键入,这将有助于简化您的任务.可能有等效的香草c/c ++库.如果其他所有方法均失败,建议您在此处查看HTTP规范. /www.w3.org/Protocols/rfc2616/rfc2616.html"target =" _ blank"title =" New Window> ^ ],尤其是与HTTP消息有关的部分
If you are using C++ in its .Net Guise, there are HttpWebRequest and HttpWebResponse types in system.web that will help simplify your task. There are probably equivalent vanilla c/c++ libraries. If all else fails I suggest you look up the HTTP specification here[^], especially the parts relating to HTTP messages here[^]. This gives you the message format, and you should be able to write a parse routine from there.


这篇关于解析HTTP Post响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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