| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 1373 online users. » 0 Member(s) | 1370 Guest(s) Applebot, Bing, Google
|
| Latest Threads |
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
09-11-2026, 09:49 PM
» Replies: 1
» Views: 214
|
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 173
|
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 183
|
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 492
|
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 252
|
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 656
|
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 230
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,263
|
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 371
|
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 998
|
|
|
| Windows service name |
|
Posted by: jeroen.rottink - 04-11-2022, 01:08 PM - Forum: IntraWeb General Discussion
- Replies (18)
|
 |
When building an Intraweb app as Windows service, the Name used is from TIWServerController.AppName. This name can't use spaces.
A customer would like to have the service named like 'CompanyName ApplicationName'.
TIWServerController.DisplayName can be used for this.
Isn't it possible to use this DisplayName for the name of the Windows Service?
I understand that this could be a breaking change for existing applications.
|
|
|
| detect lost internet connection via a hook |
|
Posted by: Ahmed Sayed - 04-06-2022, 08:30 AM - Forum: Indy
- Replies (3)
|
 |
Hi,
I am in the process of creating a push notification service where the clients will be connected all the time to the http server providing the service. I am creating the server and client apps, but I need to detect when the connection is lost on the client side via something similar to a windows hook. I don't want to create a TTimer or a thread to keep checking the connection. I want something more smarter that mimic the same thing on cell phones (Android/iOS).
I want the client to know when the connection was lost and when it was restored so it can reconnect to the service again automatically.
Knowing that the PCs that will run this will be inside a domain so some users will be allowed access to the internet, some won't. So I can't do something like keep pinging "google.com" or any other website because it will not work for some users.
This has to be done using Indy components only because I want the app to support other OS(s) as well when the C++ Builder supports Linux for example. So it has to be as cross platform as possible.
For example, I want the program to detect if I removed the Ethernet cable or turned off the WiFi on the laptop, and when I reconnect the Ethernet cable or turn WiFi on it should detect that too.
I remember there was a talk about this or something similar somewhere but I can't find it again. Anyway
Thanks in advance,
Ahmed Sayed
|
|
|
| TIWEdit - sample with pattern and regional settings |
|
Posted by: Lorbass - 04-05-2022, 03:53 PM - Forum: IntraWeb General Discussion
- Replies (16)
|
 |
Hi @all,
is there an example how to use
- the pattern-property (e.g. a regular expression)
- the regionalsettings-property (e.g. change decimal-point / thousand-separator)
in TIWEdit?
The samples on github are nice but don't use these properties.
By the way:
What is the placeholder-attribute for? As I understand it, there should also be a corresponding property placeholder-text.
Thanks in advance for hints!
|
|
|
| Connection with SSL method sslvTLSv1_2 |
|
Posted by: Сергей Александрович - 04-04-2022, 11:16 AM - Forum: Indy
- Replies (4)
|
 |
Good afternoon colleagues!
There is a task to connect to the HTTP server using SSL and certificates. When checking the validity of certificates with OpenSSL commands, the result is successful, and the response shows that TLS1_2 is used. When trying to connect to the server via IE, the result is successful. The server response is there. However, when trying to connect from the program using the IdHTTP and IdSSLIOHandlerSocketOpenSSL components, the connection is not established. Mistake:
Error Connecting with SSL.
error:1409442E:SSL routines:SSL3_READ_BYTES:tlsv1 alert protocol version.
Indy version 10.6.1.5182 OpenSSL version "1.1.0j" 20 nov 2018 .
Please tell me what could be the reason? Maybe need to install a more recent version of Indy?
|
|
|
| TIdHTTP, TIdCookieManager, accepting cookies |
|
Posted by: Boba TC - 04-02-2022, 01:55 AM - Forum: Indy
- Replies (6)
|
 |
Dear All; when using the TIdHTTP and TIdCookieManager components, how do I accept a cookie?
Here's what I'm trying to:
Code: TIdHTTP *IdHTTP1;
TIdCookieManager *IdCookieManager1;
//...
Code: //IdHTTP1->CookieManager = IdCookieManager1; - set @ design
Code: try{
IdHTTP1->Get(stringServerURL, myMemoryStream);
}catch(...){}
with IdHTTP1->AllowCookies set to true, the Server returns OK and I see in the IdHTTP1->OnHeadersAvailable event handler the line "Set-Cookie: ..." shows 5 times (5 different cookies); the IdCookieManager1->OnNewCookie event also fires 5 times; and IdCookieManager1->CookieCollection->Count == 5 after IdHTTP1->Get() returns.
Looks like Indy components do their job but the server response is a 200Kb HTML doc that basically says "your browser blocks cookies...". I did try to set ACookie argument in the IdCookieManager1->OnNewCookie handler call to true but result is the same.
Please assist; many thanks in advance.
Boba TC.
|
|
|
|