google.com的golang反向代理

时间:2016-11-12 02:41:51

标签: http go reverse-proxy

我正在尝试使用golang的反向代理。我正在尝试在我的localhost上创建一个反向代理,将我的请求转发给google.com并返回响应。即使这看起来很简单,但我无法得到正确的结果。我收到了谷歌404回复,说没有找到网址“/”

我的代码

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"

    <LinearLayout
        android:orientation="horizontal"
        android:layout_height="wrap_content"
        android:layout_width="0dp"
        android:layout_weight="1">

        ...

    </LinearLayout>

    ...

</LinearLayout>

我错过了什么?

1 个答案:

答案 0 :(得分:-1)

事实证明这是因为谷歌使用https。

相关问题