I need some advices on using WinInet to establish HTTP connection with a web server synchornously/ asynchronously to send CGI Command for real time media stream transfer.
Basically the flow is as follow:
1. Client application connects to web server (with HTTP Basic Authentication).
2. Client sends CGI command to the web server using HTTP/1.0. (If using WebBrowser2 Object, it will be webBrowser.Navigate(_T("http://127.0.0.1:8080/CGI_Commands
.")); how should I do this if I want to use WinInet instead of WebBrowser object)
3. The web server will reply with the media stream info embeded in the HTTP /1.0 200 OK response.
4. End connection.
Some brief step-by-step procedure using the WinInet API (Sequence and API to be used for each step as described above) will be enough for the work. Appreciate if there are some advices in choosing Synchornous/ Asynchronous connection for the task.
For your information, I'm using Visual C++ 2005 and pure Win32 Programming to create a DLL components for doing this task.