每当我尝试使用 HTTP 动词触发请求时,OPTIONS
我都会在客户端收到以下错误消息,但在服务器上没有错误消息
org.apache.http.NoHttpResponseException: The target server failed to respond
curl -X OPTIONS URL
给我:curl: (52) Empty reply from server
所有其他 http 动词都工作正常。
请求甚至没有到达 index.php
推杆
<Limit GET OPTIONS PUT HEAD PATCH DELETE GET>
Order allow,deny
Allow from all
</Limit>
到 .htaccess 或 vhost-config 也无济于事。
apache 服务器 (Apache/2.2.22 (Ubuntu)) 在一个用 puphet 构建的 vagrant-box (vagrant 1.3.5) 中运行。
使用的客户:
PHPStorm - 测试 RESTfull Webservie
Chrome - 开发 HTTP 客户端
对此很生气,因为我必须回答来自骨干前端的 OPTIONS 请求!
提前谢谢!