此站点需要在您的浏览器中启用 Javascript [英] This site requires Javascript enabled in your browser

查看:81
本文介绍了此站点需要在您的浏览器中启用 Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从服务器下载一些文件我使用 RetrofitVoellyDownLoadManager 这些是在 android 中从服务器下载文件的一些方法,但我的反应不是我想要的东西想要.

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 .

我使用来自其他服务器的其他 URL 测试了我的应用,它运行良好.

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

当我用我的主机测试我的应用程序时,我得到以下响应来自服务器的 HTML 文件.

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

此站点需要 Javascript 才能运行,请在您的浏览器或使用支持 Javascript 的浏览器

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

我还在浏览器中从我的服务器测试了我的下载 URl,它返回了真实的文件.

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

我的服务器有什么问题???

What is the problem with my server ???

我的完整回复

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

推荐答案

更好的答案将被接受和赞赏 :)

在收到 My Host 支持团队的回复后,我发现问题出在服务器端.
我使用了免费托管.

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.

我认为这是为了 Scraping 禁用 或者可能没有 SSL.

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 free host provider which allows me to download files from server and send request from android client.

我的新主机提供商:www.000webhost.com

这篇关于此站点需要在您的浏览器中启用 Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆