Git Product home page Git Product logo

hprose-delphi's Issues

Two questions

This is a very interesting project! Two questions if you don't mind:

  1. The Delphi implementation has the client only, but no server implementation, right?
  2. Do you have an example?

Thanks.

关于cookie的问题

首先感谢您的迅速反应,delphi2007 已可以正常编译了。

现在遇到cookie的问题

之前使用LastModified: Dec 29, 2012的HproseSynaHttpClient都正常
最近试了下最新版,cookie设置不正确

将 Synapse\HproseHttpClient.pas
539行的
SetCookie(Headers, FHost);
改为
SetCookie(HttpSend.Headers, FHost);
就正常了,会不会影响到其它的地方,尚且不知

另外请教一下,最新版python2的session设置问题

  1. 是否发布函数最后一个参数要写成 context,原来是 session
  2. 如果发布函数无参数,session如何添加,试了下写成如下形式
    def getsid(session):
    s = str(random.random())[2:]
    session['logonsid'] = s
    return s

app = HproseHttpService(sessionName='beaker.session')
app.add(getSid)

客户端如下调用
sid := client.Invoke('getsid', []); 报错提示必须要一个参数

上面服务端程序用 LastModified: Jan 4, 2014 版的 server.py(略作修改),客户端如上调用可正常工作

再一次感谢您的辛勤付出。

Compilation issue - Lazarus 2.2.0 with FPC 3.2.2

I tried installing the HProse Synapse version on Lazarus 2.2.0 with FPC 3.2.2 and got an error.

HproseCommon.pas(1371,15) Error: Can't determine which overloaded function to call

This is the line Result := Supports(nil, IID, AIntf)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.