Question

using System;
using System.Net;
using System.Xml.Linq;


namespace PhoneApp1
{
    public class ABC
    {
        //constructor

        public ABC()
        {


        }

        void abc()
        {
            String url = "";

            HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
            HttpWebResponse resp = (HttpWebResponse)req.GetRepsonse(); //why a wiggly line here?
            XDocument Xmldoc = XDocument.Load(url);
        }

I do not get GetResponse() for the req object. Why would it be so?

This link and many links says it should be possible.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top