Above code is stated to retrieve the html content of the URL submitted in the argument. As your php file will return only the string, you can directly save it and then use it in your further processing.
thanks for the help.
the problem is the opposite.
The c#application interact via serial port to a modbus device and do a lot of stuff (monitor temperature, save data to db, .....) all works ok.
The php app need to execute a command on the c#app. For example a user can stop monitor tempertaure sending a string "STOP" to c#app throught socket next i can parse the string and do the designated method.
I don't know is the better mode to do what i need.