Comments (4)
SetCookie(HttpSend.Headers, FHost); 问题已修正,这个问题可能是之前用with,后来把with语句给去掉了(因为据说with语句在未来会被作废),但没有补全(又正好找的到这个Headers属性)造成的。
python版本确实是把最后一个参数从session改为context了,这样的话,session需要自己从context中来获取,因为python没有统一的session管理方法,所以你可以根据自己所使用的环境来确定怎样从context中来获取session,context就是WSGI的环境上下文对象environ,从它当中可以获取到更多信息,包括session也可以通过它来获取。
比如:
def getsid(context):
session = context.get('beaker.session')
s = str(random.random())[2:]
session['logonsid'] = s
return s
app = HproseHttpService()
app.add(getsid)
from hprose-delphi.
非常感谢,按提示修改python服务端后,最新版 python2 和 delphi 已正常使用,目前尚未发现其它问题。
另问一下,网络传输加密目前 hprose 有什么好方法吗?
from hprose-delphi.
网络传输加密可以通过hprose提供的Filters功能。在客户端和服务器端实现自己的加密解密的Filter,然后分别添加到客户端和服务器端就可以了。
from hprose-delphi.
好的,我回去试试,本问题可以关闭了
from hprose-delphi.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hprose-delphi.