We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new \Hprose\Http\Client($uri, false)创建了一个客户端,但发现请求是post方式发送的,问题是post请求在框架中是要签名认证的,所以有以下两点疑问 1.$this->client->invoke($name, $param)这样调用远程方法 如何带上签名,并且在远程方法$_POST[‘签名’]有值 2.获取改变请求方式为GET?
The text was updated successfully, but these errors were encountered:
hprose 的请求都是 POST 发送的,没有 GET 请求方式。hprose 请求不是普通的 "multipart/form-data" 表单请求,所以在 PHP 服务器端是不存在 $_POST[] 这样的数据的。
据我说知,目前大部分常用的框架都是支持跟 hprose 无缝整合的。不知道你用的是什么框架而必须要用到签名认证。
Sorry, something went wrong.
您好,我用的symfony2.*框架,因为该框架默认情况下,会对所有POST请求都会验证csrf_token,现在的问题就是使用hprose httpserver 就会导致请求被禁止访问,通常为了安全,都会对post进行csrf_token验证,这个问题在正常使用hprose httpserver 和 不取消对post csrf_token验证的情况下,有解决的办法吗?请赐教,谢谢。
有个专门的 https://github.com/hprose/hprose-symfony 版本,我一直用 symfony,没遇到你说的问题啊。
No branches or pull requests
new \Hprose\Http\Client($uri, false)创建了一个客户端,但发现请求是post方式发送的,问题是post请求在框架中是要签名认证的,所以有以下两点疑问
1.$this->client->invoke($name, $param)这样调用远程方法 如何带上签名,并且在远程方法$_POST[‘签名’]有值
2.获取改变请求方式为GET?
The text was updated successfully, but these errors were encountered: