#1 2013-02-10 09:30:55

esi
Member
Registered: 2013-02-10
Posts: 14

Sample 09 - HttpApiServer

Hi, trying this sample, but ran into problems:

Last stable 1.17 seems to work when I connect with IE to the server URL: the code is executed and I can see in the debugger that everything seems to work as expected and returns 200, but IE reports "cannot display the webpage" and that's it. I've tried it under W7 & 8, as administrator. No changes to the code.

And the new 1.18 just never fires the Process function at all, the IE error message is the same - "cannot display the webpage".

Clearly I must be missing something obvious ;-)

Offline

#2 2013-02-10 11:49:59

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

Re: Sample 09 - HttpApiServer

I just checked http://localhost:888/root with IE on Win7, after compilation via Delphi 7 and XE2 - no problem with Chrome, but IE has issues.

Sounds like IE does not understand the "deflate" algorithm as we generated it.
In fact, we [generated a "zlib" format](http://stackoverflow.com/questions/1077 … 23_1080705) - and IE is very strict about it.

In fact there was an issue in SynZip.pas: I've just fixed CompressDeflate() function, which was in fact creating zlib content so was not working with IE (whereas Chrome was able to recognize the content) and addded CompressZLib() function, as expected by web browsers.
Should be fixed by http://synopse.info/fossil/info/2bc85e2377

Thanks for the report!

Offline

Board footer

Powered by FluxBB