| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 959 online users. » 8 Member(s) | 947 Guest(s) Applebot, Bing, Facebook, Google, 789win4bizz, h119999com, jun88uscom01, keonhacai550com, kqbd7m, ncc168network1, nohuofficial, trangchubl555
|
| Latest Threads |
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
Yesterday, 09:49 PM
» Replies: 1
» Views: 110
|
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 106
|
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 115
|
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 400
|
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 204
|
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 567
|
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 193
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,137
|
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 328
|
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 930
|
|
|
| How can I set HTMLLanguage per session or form? |
|
Posted by: magosk - 12-11-2023, 10:14 AM - Forum: IntraWeb General Discussion
- Replies (11)
|
 |
Hi, we have IntraWeb applications where we update various UI texts (e.g. TIWLabel.Caption) based on an account language setting for customers of our system, using our own code in base form(s) and helper components, and this in itself is no problem and has been in place since the first version of our applications many years ago. However, the web pages generated by IntraWeb always has a <html lang="en"> element which is incorrect for our customers that use non-English application languages. Previously this was not much of an issue in practice, but with some recent auto-translate features in modern browsers (e.g. Edge) we have seen some weird effects, where not only fixed texts but also some of those coming from the customer's own data have been modified in the browser compared to their actual values in the HTML page in question. Therefore I would like to set a correspondent of the server controller global property HTMLLanguage per session or form, or find a workaround that allows me to adjust the <html lang="en"> element of the generated web page in a more direct way.
So far my searches with AI, Google and in this forum for this have been fruitless. As an experiment, I tried to change ServerController.HTMLLanguage in the BeforeRender event (although I knew this would not be a preferred solution (and probably not thread safe)) but this turned out not to be possible at all (the property setter threw an exception due to being locked in this event). Would be very grateful for feedback on this issue. Currently using IW version 15.2.49 in production.
Best regards
Magnus Oskarsson
|
|
|
| Compatibilidade Delphi 7 |
|
Posted by: liperflores - 12-05-2023, 05:27 PM - Forum: IntraWeb Dúvidas Gerais
- No Replies
|
 |
Fala pessoal,
estou com uma dúvida que talvez já tenham respondido mas não consegui encontrar no forum.
A versão 15 do IntraWeb é compatível com o Delphi 7?
Desde já agradeço!
|
|
|
| Making IW Sessions persistent among servers or in a database |
|
Posted by: ebob42 - 12-04-2023, 06:38 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
Hi all,
Short story: is there anyone who has experience with persisting IntraWeb sessions on different server machines?
Long story: we have an IntraWeb ISAPI application which is deployed on multiple servers, using a load balancer (and cookies) to distribute the users over the didferent server machines. Normally, this works great. However, when one of the servers goes down, the users have to restart their session on another server. We wonder if it's possible to store the server information (IntraWeb forms, data modules), the User Session information, etc. and to restart a new session at another server re-creating everything that was alive in the original server right before the crash.
This would mean storing everything in the user session (as well as the formlist and details) in a database for example, and reading it when needed. Hopefully, not often.
Although this certainly sounds doable, I wonder if people have tried this before, and/or have strong doubts about the feasibility of this endavour. Note that we still plan to continue using the load balancer, so the sessions will be redirected to the correct server most of the time, it's just that we want to have a failover mechanism so people can continue their work (perhaps after a few seconds of reloading/recreating everyting).
And yes, preventing the crash (or "ping timeout" in our case) should be the best solution, but if never hurts to have a failover option in the first place.
Thanks in advance for any comments, hints or feedback.
Groetjes, Bob Swart
|
|
|
| Basic Authentication Error |
|
Posted by: staff@ergosoft.it - 12-04-2023, 11:20 AM - Forum: Indy
- Replies (2)
|
 |
Hi,
I have a problem on a API REST call.
I always get the authentication error: HTTP/1.1 401 Unauthorized
this is my code in delphi 11.3
thanks
Alessandro Romano
//-----------------------------------------------------------
var
lHTTP: TIdHTTP;
SSL : TIdSSLIOHandlerSocketOpenSSL;
Comando, RisultatoPost : Ansistring;
lPostData: TStringStream;
base64: TBase64Encoding;
myUser, MyPass : string;
begin
Comando := 'https://apirest... etc';
base64 := TBase64Encoding.Create(0);
myUser := 'myuser';
MyPass := 'mypass';
lPostData := TStringStream.Create('', TEncoding.UTF8);
with TJSONObject.Create do
try
AddPair('Authorization', 'Basic ' + base64.Encode(myUser + ':' + MyPass));
lPostData.Writestring(ToJSON);
finally
Free;
end;
lPostData.Position := 0;
try
lHTTP := TIdHTTP.Create;
SSL := TIdSSLIOHandlerSocketOpenSSL.Create(lHTTP);
SSL.SSLOptions.Method := sslvTLSv1_2;
lHTTP.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(lHTTP);
lHTTP.IOHandler := SSL;
lHTTP.HandleRedirects := True;
lHTTP.Request.CustomHeaders.Clear;
lHTTP.Request.CustomHeaders.FoldLines := False;
lHTTP.Request.Accept := 'application/json';
//lHTTP.Request.ContentType := 'application/json';
//lHTTP.Request.CharSet := 'UTF-8';
RisultatoPost := lHTTP.Post(Comando, lPostData);
finally
SSL.Free;
lHTTP.Free;
lPostData.Free;
base64.Free;
end;
|
|
|
| Does Indy send and receive Raw Ethernet II frames? |
|
Posted by: JFrancis - 12-01-2023, 05:45 PM - Forum: Indy
- Replies (1)
|
 |
Hi There,
I work for a company that uses Raw ethernet frames to control hardware. I'm trying to find a way to send the frames and also receive them. I've gotten a little lost trying to use npcap to do this and I'm wondering if Indy has the capability to do this.
As a clarification: I just need it to send a frame of [send to MAC][sent from MAC][etc.......]
Has anyone done this here before?
|
|
|
|