Windows phone get server source code

后端 未结 2 2011
离开以前
离开以前 2021-01-15 05:25

I am trying to get the source code of a site. In windows application a simple http request would be enough. However in windows phone it is a lot more complicated. I searched

2条回答
  •  既然无缘
    2021-01-15 06:15

    The problem is that you return sReturn immediately, but the download won't complete until some time in the future. So sReturn still has the default value of the empty string at the time you return it.

    You can download this sample which includes code for doing exactly what you want to do using the HttpClient portable library.

提交回复
热议问题