Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. cross-domain issue

cross-domain issue

Scheduled Pinned Locked Moved C#
phpcomjsonhelptutorial
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 8 Offline
    8 Offline
    855
    wrote on last edited by
    #1

    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.

    L J R 3 Replies Last reply
    0
    • 8 855

      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.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You probably need to contact the owner of the website first.

      Use the best guess

      1 Reply Last reply
      0
      • 8 855

        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.

        J Offline
        J Offline
        Jasmine2501
        wrote on last edited by
        #3

        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.

        8 1 Reply Last reply
        0
        • J Jasmine2501

          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.

          8 Offline
          8 Offline
          855
          wrote on last edited by
          #4

          i get cookies using fiddler, how to set the cookies in code

          J 1 Reply Last reply
          0
          • 8 855

            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.

            R Offline
            R Offline
            RichardGrimmer
            wrote on last edited by
            #5

            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++.

            1 Reply Last reply
            0
            • 8 855

              i get cookies using fiddler, how to set the cookies in code

              J Offline
              J Offline
              Jasmine2501
              wrote on last edited by
              #6

              This was wicked freekin helpful... best help site on the web! Gooooooogle! [^]

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups