获取一些HTTP URL的JavaScript源 [英] Get source of some http url with javascript

查看:93
本文介绍了获取一些HTTP URL的JavaScript源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时有可能得到源$ C ​​$与JavaScript在客户端的任何网页的C吗? 随着AJAX可能?

Is it possible to get source code of any webpage with javascript at client side? With AJAX maybe?

但我需要的服务器,我从网上下载的网址确实看到客户端的IP。与AJAX,它会显示我的脚本服务器的IP,对吧?

But I need that the server I am downloading the url from does see the IP of the client.. with AJAX it will show my script server IP, right?

感谢你在前进。

推荐答案

JavaScript不能了其领域之外获取的项目。

Javascript can not fetch items outside of its domain.

这是AJAX查询仅仅是一个正常的请求异步完成。这一切都发生在真实的请求将发生在一个AJAX请求。

An AJAX query is just a normal request done asynchronously. Everything that happens in a real request will happen in an AJAX request.

关于知识产权东西,则该请求来自客户端。由于JavaScript是基于客户端的,所以你会看到客户端的IP请求。

Regarding the IP thing, the request is coming from the client. Since Javascript is client based, so you will see the client's IP in the request.

这篇关于获取一些HTTP URL的JavaScript源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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