cross-domain issue
-
I want to request http://odds.500.com/fenxi/inc/daxiaoajax.php?fid=368623&id=710&t=1366372025518[^], this page will response a json text. But as cross-domain issue, i get nothing. how to deal with this? i use WebRequest myWebRequest = WebRequest.Create(url);to get the response.
-
I want to request http://odds.500.com/fenxi/inc/daxiaoajax.php?fid=368623&id=710&t=1366372025518[^], this page will response a json text. But as cross-domain issue, i get nothing. how to deal with this? i use WebRequest myWebRequest = WebRequest.Create(url);to get the response.
-
I want to request http://odds.500.com/fenxi/inc/daxiaoajax.php?fid=368623&id=710&t=1366372025518[^], this page will response a json text. But as cross-domain issue, i get nothing. how to deal with this? i use WebRequest myWebRequest = WebRequest.Create(url);to get the response.
No, no it doesn't. It's giving an empty response. The problem is probably with the request - you might need to post some data or send a cookie to make it work.
-
No, no it doesn't. It's giving an empty response. The problem is probably with the request - you might need to post some data or send a cookie to make it work.
-
I want to request http://odds.500.com/fenxi/inc/daxiaoajax.php?fid=368623&id=710&t=1366372025518[^], this page will response a json text. But as cross-domain issue, i get nothing. how to deal with this? i use WebRequest myWebRequest = WebRequest.Create(url);to get the response.
If it's a cross domain issue (and see other posts - suspect not), then there's nothing you can do on your side....the owner of the service / site needs to accept the correct headers (AccessControl-AllowDomain etc). If this service is intended to be called externally, then they must have added them already though!
C# has already designed away most of the tedium of C++.
-
This was wicked freekin helpful... best help site on the web! Gooooooogle! [^]