This is strange... If I examine the server output.. this is working (github) http://tools.seobook.com/server-header-checker/?page=single&url=https%3A%2F%2Fapi.github.com%2Fusers%2Fmralexgray%2Frepos&useragent=1&typeProtocol=11
This is not working (my actual url that I use for testing) http://tools.seobook.com/server-header-checker/?page=single&url=http%3A%2F%2Fwww.marknad.se%2Findex.php%2Fio&useragent=1&typeProtocol=11 As you may see my link returns status 200 and it appears to be workning - but I get status 0 in Angular and nil in data.... What on earth is going on....... such basic task.. pls anyone? Den måndag 8 juni 2015 kl. 16:01:22 UTC+2 skrev Johan Printz: > > Hmmmmm.. I replaced my url with: > > https://api.github.com/users/mralexgray/repos > > as a test - then it worked... Now I need to figure out why this link works > and not mine... > > Den måndag 8 juni 2015 kl. 15:54:22 UTC+2 skrev Johan Printz: >> >> Hi Robert, >> The url is a part of Codeigniter framwork, it's constructed that way. >> And regardless if I am using post or get (without params) the web service >> is executed (and returns data as it should) but nothing is found in >> Angular, http, data=nil and status=0 >> >> Den måndag 8 juni 2015 kl. 15:38:09 UTC+2 skrev Robert STAICU: >>> >>> $http.get('http://www.url.se/index.php/io' >>>>> ). >>>>> >>>> http://www.url.se/index.php/io >>> >>> Why index.php? Also on post shouldn't you send an object and not a >>> string? >>> $http.post('http://www.url.se/index.php/io', "transid=" + >>> encodeURIComponent("21") >>> ). >>> >>> Have a nice day. I hope it helps >>> >> -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.