Click here to Skip to main content
14,836,551 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to send a command to my camera next it give to me a response
i want to read a response in xml file
is possibile?

What I have tried:

<pre>   WebRequest request = WebRequest.Create(
            // If required by the server, set the credentials.  
            request.Credentials = CredentialCache.DefaultCredentials;
            // Get the response.  
            WebResponse response = request.GetResponse();
            // Display the status.  
        //    listBox1.Items.Add(((HttpWebResponse)response).StatusDescription);
            // Get the stream containing content returned by the server.  
            Stream dataStream = response.GetResponseStream();
            // Open the stream using a StreamReader for easy access.  
            StreamReader reader = new StreamReader(dataStream);
            // Read the content.  
            string responseFromServer = reader.ReadToEnd();
            // Display the content.  
            // Clean up the streams and the response.  
Gerry Schmitz 15-Sep-18 16:48pm
Does the camera "respond" in XML?

Can I make a chicken lay chocolate eggs?
Mikixx 15-Sep-18 16:49pm
i see in browser like xml


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