Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 800
» Latest member: Ae29vik1
» Forum threads: 1,305
» Forum posts: 6,592
Full Statistics
|
Online Users |
There are currently 89 online users. » 0 Member(s) | 86 Guest(s) Bing, Google, Yandex
|
|
|
Session Timeout in IW 15.1.19 |
Posted by: davidmcevoy@outlook.com - Today, 09:49 AM - Forum: IntraWeb General Discussion
- No Replies
|
 |
Hi, I am having issues with getting the timeout to function properly.
I have set a basic new application, set the timeout to one minute and I have IWSessionTimeOut.html in the templates directory.
I find that if you try and interact with the app immediately after the timeout has expired the page is shown correctly. However if you leave it for a couple of minutes later than that, I am getting the standard IW exception message Session not found rather than my timeout html.
Is this a bug in IW or is there something else I should be doing as it is not obvious to me.
Thanks in advance.
David
|
|
|
javascript in a template HTML |
Posted by: bhainak - 01-20-2021, 07:42 PM - Forum: IntraWeb General Discussion
- Replies (4)
|
 |
Hello in my application, i am using a template file to with th IWTemplateProcessorHTML1 component.
In this template i have a little Javascript to know the type of device ( iphone, PC ....etc)
when i open th Html file inChrom ,it is ok the test is ok and my variables are appaering in Chrome.
But in my application nothin , the application is launching but nothing ara display en the screen.
We can't make java script in a template.
So, if it is my problem, how can i do to make javascript in my program, where , and how can i retrieve the result of the javascript in a delphi variable
this is my template
<html>
<head>
<title></title>
</head>
<body>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
if( navigator.userAgent.match(/iPhone/i)
|| navigator.userAgent.match(/webOS/i)
|| navigator.userAgent.match(/Android/i)
|| navigator.userAgent.match(/iPad/i)
|| navigator.userAgent.match(/iPod/i)
|| navigator.userAgent.match(/BlackBerry/i)
|| navigator.userAgent.match(/Windows Phone/i)
){
document.write(' <div align="center">');
document.write(' Vente à distance<br/>');
document.write('Merci de vous loguer <br/>');
document.write('<br/>');
document.write('{%iwlabel1%} {%user%} <br/>');
document.write('<br/>');
document.write('{%iwlabel2%} {%mdp%}<br/>');
document.write('<br/>');
document.write('{%valider%} <br/>');
document.write('<br/>');
document.write('{%iwlabel5%}<br/>');
document.write('{%iwlabel6%}<br/>');
document.write('{%iwlabel4%} {%nmdp1%}<br/>');
document.write('<br/>');
document.write('{%iwlabel3%} {%nmdp2%}<br/>');
document.write('{%changermdp%} <br/>');
document.write('{%iwimage2%}<br/>');
document.write('{%iwimage1%}<br/>');
document.write('{%iwlabel9%}<br/>');
document.write('</div>');
}
else {
document.write('<div align="center">')
document.write(' IPHONE{%iwlabel7%}<br/>')
document.write('{%iwlabel8%}<br/>')
document.write('<br/>')
document.write('{%iwlabel1%} {%user%} <br/>')
document.write(' {%valider%} <br/>')
document.write(' {%iwlabel2%} {%mdp%} {%iwimage4%}<br/>  <br/>')
document.write('<br/>')
document.write('<br/>')
document.write('{%iwlabel5%}<br/>')
document.write('{%iwlabel6%}<br/>')
document.write('<br/>')
document.write(' {%iwlabel4%} {%nmdp1%} {%iwimage5%} <br/>')
document.write(' {%changermdp%} <br/>')
document.write(' {%iwlabel3%} {%nmdp2%} {%iwimage6%}<br/>')
document.write('{%iwimage2%}<br/>')
document.write('{%iwimage3%} {%iwimage1%}{%iwimCR%}{%iwLCR%}<br/>')
document.write('{%iwlabel9%}<br/>')
document.write('{%iwlabel10%}<br/>')
document.write('{%iwbutton1%}<br/>')
document.write('<br/>')
document.write(' {%chadmin%} {%mdpad%} {%btnad%} <br/>')
document.write('</div>');
}
</SCRIPT
</body>
</html>
Thank's
|
|
|
Freepascal Daemon with indy GMU libraries |
Posted by: hendo3018 - 01-19-2021, 11:51 PM - Forum: Indy General Discussion
- Replies (2)
|
 |
I had a windows service application built on Delphi that I have successfully converted to a linux freepascal Daemon. My plan is to run it on a OEL7 server, no GUI, however the indy components are compiling in GNU dependencies
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f665d750000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f665d74a000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f665d560000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f665d53e000)
I am using
IdUDPServer
IdTCPServer
Has anyone been able to prevent these dependencies from compiling to executables?
|
|
|
IdAntiFreeze |
Posted by: Airmech - 01-19-2021, 12:58 PM - Forum: Indy General Discussion
- Replies (1)
|
 |
Hi,
Has the AntiFreeze component been removed from the latest version of Indy on CBuilder 10.4?
I've looked everywhere for it and I'm damned if I can find it.
Thanks
Never mind, I found the reason why its missing.
Thanks.
|
|
|
SSL 64-bit Block Size Cipher Suites Supported (SWEET32) |
Posted by: pgnair - 01-19-2021, 03:51 AM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
We are getting the vulnerability 'SSL 64-bit Block Size Cipher Suites Supported (SWEET32)' on this quarter PT. Here is the cipher what we are currently using
Code: TInServerIOHandlerSSLOpenSSL(IOHandler).SSLOptions.CipherList :='ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:
DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:!ADH:!EXP:!RC4:!eNULL@STRENGTH'
|
|
|
Best way to detect client location country on indy http server |
Posted by: Ahmed Sayed - 01-17-2021, 02:41 PM - Forum: Indy General Discussion
- Replies (2)
|
 |
Hi,
I am working on an app that will work on desktop and mobile, I want to limit the access for users to a certain country for example "Egypt". Now what is the most secure way to do so, the service will use tokens and HTTPS and everything else that will secure it. But what I am asking is which one of the following is best:
1- Get the location on client side and send the lat, lang or country code like "EG" in an http header.
2- Detect the location on server side only on logins via client IPs (I don't know how to do this? I believe there is a service that can get you the location from IP, but I know that IP addresses sent to server are not the real ones and I don't know if they really point to the client location or not)
3- Let's say Option 2 is the correct way should validate the location with each request or just at login as I said?
Thanks in advance any help will be appreciated
|
|
|
IDHTTP.Get - "Socket Error #11001. Host not found"" |
Posted by: zarkogajic - 01-15-2021, 01:50 PM - Forum: Indy General Discussion
- Replies (6)
|
 |
Hi,
A confession first: I've never been playing too much with Indy, so my knowledge is limited to simple tasks.
A task is to send a Get request to a web page (actually an ASP.NET AXD HttpHandler) and receive some response back.
As simple code as:
Code: var
idHTTP : TIdHTTP;
response : TStringStream;
begin
response := TStringStream.Create('');
idHTTP := TIdHTTP.Create(nil);
try
try
idHTTP.Get('http://mywebsite.com/MyHandler.axd?id=123', response);
if idHTTP.ResponseCode = 200 then
//log ok
else
//log not ok
;
except on E : Exception do
//log exception
end;
finally
idHTTP.Free;
response.Free;
end;
end;
For most users this works - response is received.
For some users, the following error is returned "Socket Error # 11001. Host not found.". I suspect it has to do with proxy they are using.
What options do I have to let those "socket error" users specify some more parameters and be able to receive response?
-žarko
|
|
|
libeay32.dll not found |
Posted by: Matti1104 - 01-15-2021, 01:36 PM - Forum: Indy General Discussion
- Replies (5)
|
 |
Hallo,
I try to deploy a software for a ftp-server access. I am using the c++ builder 10.2.3 with indy 10. If I try to connect to the server I get the error message "ssl negotiation failed".
The function "WhichFailedToLoad()" gives back "libeay32.dll not found". A copy of the dll to the application folder nit helps.
What can I do, to solve this problem?
|
|
|
|