简单的HTTP请求Visual C ++ 2010 [英] simple http request visual c++ 2010
本文介绍了简单的HTTP请求Visual C ++ 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我一直在使用vb,现在我正在尝试学习vc ++,
我想在Visual C ++ 2010中制作一个简单的应用程序(Windows窗体/MFC),将计算机的状态"发送到Web服务器.
我只希望该应用在一定时间间隔内发布/获取/执行此网址:
http://tony.ug.org/s/index.php?status=xxxxxx& auth = xxxxx
任何帮助将不胜感激.
hello everyone,
i have been using vb and now im trying to learn vc++,
i want to make a simple app (windows forms/mfc) in visual c++ 2010 to send the "status" of my computer to a web server.
i just want the app to post/get/execute this url in a time interval:
http://tony.ug.org/s/index.php?status=xxxxxx&auth=xxxxx
any help will be highly appreciated.
推荐答案
如果您使用的是MFC,则有一些类可以帮助您.
CInternetSession类 [ CHttpConnection服务包 [用于创建Internet客户端应用程序的MFC类 [ WinInet基础 [
If you''re using MFC there are some classes to help you with that.
CInternetSession Class[^]
CHttpConnection Clas[^]
Also see
MFC Classes for Creating Internet Client Applications[^]
WinInet Basics [^]
尝试 HttpSendRequest()
[ ^ ]和相关功能.
这篇关于简单的HTTP请求Visual C ++ 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文