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

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

问题描述

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

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天全站免登陆