#1 2011-10-14 20:09:51

Sir Rufo
Member
Registered: 2011-10-14
Posts: 24

XE2: Pure Delphi THttpServer-Instance isn't working

The API-Server works fine but not the Delphi-THttpServer.
With Delphi XE no problems, just with XE2 (32bit)

Seems that the Server is responding, but it delivers no JSON-Results

Offline

#2 2011-11-02 10:55:06

lele9
Member
Registered: 2011-10-28
Posts: 170

Re: XE2: Pure Delphi THttpServer-Instance isn't working

i have the same problem, do you solve it?

Offline

#3 2011-11-02 15:31:47

Sir Rufo
Member
Registered: 2011-10-14
Posts: 24

Re: XE2: Pure Delphi THttpServer-Instance isn't working

No, also tested with XE2 Update2 ... u still need administrator rights to run the Http-Server

Offline

#4 2011-11-02 16:02:07

lele9
Member
Registered: 2011-10-28
Posts: 170

Re: XE2: Pure Delphi THttpServer-Instance isn't working

i find the solution.
i pass aHandeUserAuthentication = "false" when i create  TSQLRestServerDB.
now i see the json data with browser.

Offline

#5 2011-11-02 16:24:02

Sir Rufo
Member
Registered: 2011-10-14
Posts: 24

Re: XE2: Pure Delphi THttpServer-Instance isn't working

lele9 wrote:

i find the solution.
i pass aHandeUserAuthentication = "false" when i create  TSQLRestServerDB.
now i see the json data with browser.

Did u compile with XE2 and running NOT with admin rights?

Offline

#6 2011-11-02 17:12:23

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,207
Website

Re: XE2: Pure Delphi THttpServer-Instance isn't working

http.sys based HTTP server need to register the the URL - so it needs administrator rights.

See the documentation about this subject.

Offline

#7 2011-11-02 17:33:10

Sir Rufo
Member
Registered: 2011-10-14
Posts: 24

Re: XE2: Pure Delphi THttpServer-Instance isn't working

ab wrote:

http.sys based HTTP server need to register the the URL - so it needs administrator rights.

See the documentation about this subject.

But the documentation also refers to the pure Delphi HTTP Server, which is used, when the http.sys based Server could not started (and this happens when starting without Admin rights).

And thats the main problem with XE2, this pure Delphi Server did not work

Offline

#8 2011-11-02 18:04:37

lele9
Member
Registered: 2011-10-28
Posts: 170

Re: XE2: Pure Delphi THttpServer-Instance isn't working

i have administrator rights under win xp sp3 with delphi xe2.
so i don't know whats happen without administrator rights, sorry.

Offline

Board footer

Powered by FluxBB