문제

Okay I'm doing a simple post like

        WebClient webClient = new WebClient();
        webClient.Headers["content-type"] = "application/x-www-form-urlencoded";
        webClient.Encoding = Encoding.UTF8;
        webClient.UploadStringAsync(new Uri(ResultServerAddress, UriKind.Absolute), "POST", "data=" + "stuff");

When I deploy this to dev, and look at the post in fiddler, I see a 404 error with the address of the page I'm posting to looking for crossdomain.xml. Is there no way I can tell my code to not look for this file? Or does every site that wants to revieve posts from mine have to have a crossdomain.xml file in place?

도움이 되었습니까?

해결책

There is no way to post to sites that do not want you to do that. Unless your application is hosted within the same domain or your application is trusted and you use Silverlight 5.

Read this article http://msdn.microsoft.com/en-us/library/cc645032%28v=vs.95%29.aspx for more information.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top