代码之家  ›  专栏  ›  技术社区  ›  Andrew

Zend框架:如何重定向为POST请求?

  •  0
  • Andrew  · 技术社区  · 14 年前

    2 回复  |  直到 14 年前
        1
  •  3
  •   David Snabel-Caunt    14 年前

    Referer作为头发送,简单地说:

    $client = new Zend_Http_Client($uri);
    $client->setHeaders('Referer', 'http://www.yourwebsite.com/');
    $client->request(Zend_Http_Client::POST);
    
        2
  •  0
  •   Victor Nicollet    14 年前

    没有一种可靠的方法可以让客户端浏览器根据适当的HTTP引用发布自己的数据。

    你必须在服务器上使用 curl