通过下面这个地址(Only method GET is accepted.)
http://api.wipmania.com/123.45.67.89?google.com
取得值
“KR”
在cs文件中如何写?

解决方案 »

  1.   

    System.Net.WebCient obj = new ..........
    obj.DownLoadString(url)
      

  2.   


    WebClient webClient = new WebClient();
    webClient.Credentials = CredentialCache.DefaultCredentials;
    //从指定的URI下载资源
    string strUrl = "http://api.wipmania.com/123.45.67.89?google.com";
    byte[] responseData = webClient.DownloadData(strUrl);
    //返回值
    string returnValue = Encoding.UTF8.GetString(responseData);