Board index » delphi » Indy http client -> Intraweb standalone server

Indy http client -> Intraweb standalone server


2005-03-17 09:49:12 PM
delphi31
Hi all,
I'm in the process of converting a number of apps from Delphi 7.0 to
Delphi 2005.
I have client application (based on an indy http client) that connects
to a stand-alone intraweb server application. After converting both
apps to delphi 2005 the intraweb server returns a "javascript not
supported" webpage when I try to connect with the client application.
Connecting with IE still works fine.
My questions:
How does intraweb detect if a browser supports javascript? What do I
have to change in my indy http client to get this working again?
TIA,
Robert.
 
 

Re:Indy http client -> Intraweb standalone server

"Robert Cram" <XXXX@XXXXX.COM>wrote in news:xn0dzv2nb3cj5qx000
@forums.borland.com:
Quote
How does intraweb detect if a browser supports javascript? What do I
have to change in my indy http client to get this working again?
It looks at the user agent, but I think we might have added a JS test a while
back as well for 4.0 mode.
Atozed staff provides basic assistance with peer support
on these forums. For more information see:
www.atozed.com/intraweb/support/peer.iwp
 

Re:Indy http client -> Intraweb standalone server

The http client's useragent property is set to the same value as my
internet explorer's. So the difference is probably due to the JS test
introduced by the intraweb server since the version that came bundled
with Delphi 7.0
Anyway to circumvent this test (other than rewriting the server app for
3.2 mode)?
TIA,
Robert.
Chad Z. Hower aka Kudzu writes:
Quote
"Robert Cram" <XXXX@XXXXX.COM>wrote in news:xn0dzv2nb3cj5qx000
@forums.borland.com:
>How does intraweb detect if a browser supports javascript? What do I
>have to change in my indy http client to get this working again?

It looks at the user agent, but I think we might have added a JS test
a while back as well for 4.0 mode.


 

Re:Indy http client -> Intraweb standalone server

"Robert Cram" <XXXX@XXXXX.COM>wrote in news:xn0dzz07t2p2dqo000
@forums.borland.com:
Quote
The http client's useragent property is set to the same value as my
internet explorer's. So the difference is probably due to the JS test
introduced by the intraweb server since the version that came bundled
with Delphi 7.0

Anyway to circumvent this test (other than rewriting the server app for
3.2 mode)?
In 4.0 I dont see any way to bypass it without emulating it. You can look at
the initial data sent and see what the JS does and emulate that.
Atozed staff provides basic assistance with peer support
on these forums. For more information see:
www.atozed.com/intraweb/support/peer.iwp