Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
How could i retrieve data separately from PHP page which echo two parameter as result and i need those data to be assigned to variable p1 and p2 separately.
C#
private void ShowText(IAsyncResult result)
    {
        HttpWebRequest request = (HttpWebRequest)result.AsyncState;
        HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(result);

        using (StreamReader streamReader = new StreamReader(response.GetResponseStream()))
        {
            string content = streamReader.ReadToEnd();
            Debug.WriteLine(content);
        }
    }
Posted
Comments
Akinmade Bond 30-Mar-14 2:13am    
What does Debug.WriteLine(content); output?
Member 10659604 30-Mar-14 6:16am    
it shows the output

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