如何重定向从iPad发出的HTTP请求? [英] How can I redirect HTTP requests made from an iPad?

查看:218
本文介绍了如何重定向从iPad发出的HTTP请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于在iPad上我们无法编辑主机文件(没有越狱),我们如何随意将网络流量重定向到另一个网址?

Since on an iPad we cannot edit the hosts file (without jailbreaking), how can we arbitrarily redirect web traffic to another url?

这对某些事情很重要例如开发一个使用虚拟主机配置的网站,你想要重定向到开发机器。

This would be important for something such as developing a website that uses a Virtual Host configuration where you want to redirect to a development machine.

(这与这个问题有关:我可以编辑iPad的主机文件吗?

(This is related to this question: Can I edit an iPad's host file?)

推荐答案

解决这个iPad限制的方法是使用HTTP代理服务器,例如 Squid 在另一台机器上运行,您可以在其中编辑主机文件。

The way to get around this limitation of the iPad is to use a HTTP proxy server, such as Squid running on another machine where you can edit the hosts file.

在iPad下设置 - >网络 - > Wi-Fi - >(您的网络)有一个HTTP代理设置,可以设置为手动。在此处输入您的代理信息。

On the iPad Under Settings -> Network -> Wi-Fi -> (Your network) There is a HTTP Proxy setting which can be set to manual. Enter you proxy information here.

设置完成后,您就可以操作iPad,就像更改主机文件一样。

Once this is set up you would be able to manipulate the iPad as if you were changing the hosts file.

这篇关于如何重定向从iPad发出的HTTP请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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