将URL发送到服务器 [英] Sending a URL to a server
本文介绍了将URL发送到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个以太网摄像头,可以接受URL命令以使其移动,例如http://192.168.1.100/axis-cgi/com/ptz.cgi?rpan=10会让它平移10度。
有没有简单从C ++ Windows应用程序发送这些命令的方法?我尝试过使用ShellExecute工作正常,但每次都打开我的网页浏览器,我不想发生这种情况。
谢谢
Tony
I have an Ethernet camera which accepts URL commands to make it move e.g. "http://192.168.1.100/axis-cgi/com/ptz.cgi?rpan=10" will make it pan 10 degrees.
Is there an easy way to send these commands from a C++ Windows application? I have tried using ShellExecute which works OK but it opens up my web browser each time which I prefer not to happen.
Thanks
Tony
推荐答案
明确的答案是:不。你必须实施一些东西。
步骤:
1.打开与服务器的连接
2.发布命令
3.解析结果
查看结果和错误代码!!!
本文提供了一个很好的概述: C ++中一个功能齐全的Windows HTTP Wrapper 。
提示: Wireshark 是一个很好的工具什么在网上。
The clear answer is: No. You got to implement some stuff.
Steps:
1. open a connection to a server
2. post the commands
3. parse the result
Check the results and error codes!!!
This article provides a good overview: A Fully Featured Windows HTTP Wrapper in C++.
Tip: Wireshark is a fine tool to see what is going on the net.
这篇关于将URL发送到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文