javascript - ajax 302 Moved Temporarily when call odesk rss feed -


when fetching data odesk feed 302 moved temporarily error, when open same url in browser, content there: doing wrong?

var url = "https://www.odesk.com/jobs/rss?nbs=1&g=&q=";              var x = new xmlhttprequest();                        x.onreadystatechange = function() {              alert(x.status);              if (x.readystate == 4 && x.status == 200) {                 doc = x.responsexml;               }         };     x.open("get", url, true);         x.send(); 

it fault trying in localhost.. worked fine in phone.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -