是否有任何 javascript(和客户端)wget 实现? [英] Is there any javascript (and client-side) wget implementation?

查看:32
本文介绍了是否有任何 javascript(和客户端)wget 实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了向网站管理员提供服务,我需要下载他们网站的公共部分.我目前在我的服务器上使用 wget 来做这件事,但它引入了很多负载,我想把那部分移到客户端.

In order to provide a service for webmasters, I need to download the public part of their site. I'm currently doing it using wget on my server, but it introduce a lot of load, and I'd like to move that part to the client side.

JavaScript 中是否存在 wget 的实现?

Does an implementation of wget exists in Javascript?

如果存在,我可以压缩文件并将它们发送到我的服务器进行处理,这样我就可以专注于应用的核心业务.

If it exists, I could zip the files and send them to my server for processing, that would allow me to concentrate on the core business for my app.

我知道 Js 中存在一些压缩库(例如 zip.js),但我无法找到 wget 对应项.你知道类似的吗?

I know some compression library exists in Js (such as zip.js), but I was unable to find the wget counterpart. Do you know something similar?

推荐答案

JavaScript 中是否存在 wget 的实现?

Does an implementation of wget exists in Javascript?

我对此表示怀疑,因为 同源政策 限制内置浏览器阻止您获取位于其他域上的内容.如果内容位于您的域中并且您没有违反安全策略,则可以使用 AJAX.

I doubt it due to the same origin policy restriction built-in browsers which prevents you from fetching contents located on other domains. If the contents is located on your domain and you are not violating the security policy you could use AJAX.

这篇关于是否有任何 javascript(和客户端)wget 实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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