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
如题: RPC场景下,如何从客户端发送cookie到服务端?
The text was updated successfully, but these errors were encountered:
hprose 会自动传递服务器端设置的 cookie,用户不能自己从客户端发送 cookie 到服务器。
Sorry, something went wrong.
好的,谢谢
不客气。这样做有两个原因,第一个原因是并非所有平台提供的 HTTP 通讯都支持让用户设置 Cookie,比如在浏览器中,使用 XHR 虽然可以设置一些自定义的 HTTP 头,但是是不能设置 Cookie 的。第二个原因是 hprose 支持多种底层传输协议,所以用户在构建服务时,最好是不要依赖某个特定传输协议的功能,能直接使用 RPC 方式传递的数据,尽量使用 RPC 方式传递,这样可以方便底层协议替换。
Cookie
No branches or pull requests
如题:
RPC场景下,如何从客户端发送cookie到服务端?
The text was updated successfully, but these errors were encountered: