Click here to Skip to main content
15,507,293 members
Please Sign up or sign in to vote.
3.12/5 (3 votes)
See more:
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
Posted
Comments
Kornfeld Eliyahu Peter 6-Jan-15 8:53am    
You need a library for HTTP in C++...
See if you can pick one here: http://kukuruku.co/hub/cpp/a-cheat-sheet-for-http-libraries-in-c
Sergey Alexandrovich Kryukov 6-Jan-15 12:08pm    
Why? why?!
—SA
softwaremonkey 6-Jan-15 12:53pm    
Why? Why what?

Please explain further.
softwaremonkey 7-Jan-15 6:34am    
Thanks, your advice was useful and helped me find a solution

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900