This site requires Javascript enabled in your browser

旧时模样 提交于 2020-01-04 01:36:06

问题


I Need to download some files from Server I use Retrofit ,Voelly and DownLoadManager which are some of ways to download files from server in android , but my response is not the things that I want .

I test my app with other URLs from other servers and it works perfectly.

When I test my app with my Host I get below Response From Server as HTML File.

This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support

I also test my download URl from My server in browsers and it returns the true file .

What is the problem with my server ???

My complete response

<html>
<body>
<script type="text/javascript" src="/aes.js" >
</script>

<script>
function toNumbers(d){
  var e=[];
  d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});
  return e
}

function toHex(){

  for(var d=[],d=1==arguments.length&&
  arguments[0].constructor==Array?arguments[0]:arguments,e="",
  f=0; f<d.length;f++)
     e+=(16>d[f]?"0":"")+d[f].toString(16);

 return e.toLowerCase()
}

var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),
b=toNumbers("98344c2eee86c3994890592585b49f80"),
c=toNumbers("4e617cfaefcd0f6f4fea87d72b611efa");

document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+";
 expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; 
location.href="http://<myURL>/sang.epub?i=1";
   </script>

<noscript>
This site requires Javascript to work, please enable Javascript in your 

browser or use a browser with Javascript support
</noscript>
</body>
</html>

回答1:


Better Answers will Be accepted and appreciated :)

After getting response from My Host support team, I found that the problem is from Server Side.
I have used the free hosting.

Support Team sayed to me that their free hosts are only for Creating Web Sites and not downloading file from them.

I think this is for be Scraping disabled or maybe not having SSL .

But if any one have better ideas about that explains to me as comment or answer

I finally use better host provider which allows me to download files from server 000webhost



来源:https://stackoverflow.com/questions/59511799/this-site-requires-javascript-enabled-in-your-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!