如何使用C ++语言从Web服务器发送和接收数据 [英] How Do I Can Send And Receive Data From Web Server Using C++ Language

查看:288
本文介绍了如何使用C ++语言从Web服务器发送和接收数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您是否知道使用C ++语言从Web服务器使用POST / GET方法发送和接收数据?



我有一个应用程序A(使用C ++),Web服务器B



图表:

  A  - >发送数据 - > B  - >检查验证信息 - >返回值 - > A  





我想用两个 CString 参数发送信息到Web服务器(PHP),并在此服务器上将检查验证此信息的一些规则。然后发送回应用程序A.



可能有人给我解决方案或示例,用于在应用程序A中发送和接收数据,我可以使用哪种API用过吗?



谢谢和最好的问候!

zidane

http://learn-tech-tips.blogspot.com

解决方案

< blockquote>根据<詹姆斯·马歇尔, HTTP 沟通可能非常简单:编写客户端和服务器的实用指南 [ ^ ]。

Do you have any idea for send and receive data with POST/GET method from web Server using C++ language?

I have one Application A (using C++), Web Server B

Diagram:

A --> Send Data --> B --> Check Validate information --> return values --> A



I want to send information with two CString parameter to Web Server (PHP), and on this server will be check validate some rules on this information. And then send back to application A.

May someone give me solution or example for send and receive data in Application A, which API i can used?

Thanks and best regards!
zidane
http://learn-tech-tips.blogspot.com

解决方案

According to James Marshall, HTTP communication could be really easy: "A Practical Guide to Writing Clients and Servers"[^].


这篇关于如何使用C ++语言从Web服务器发送和接收数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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