| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 551 online users. » 1 Member(s) | 545 Guest(s) Applebot, Baidu, Bing, Google, Yandex, jiliproart
|
| Latest Threads |
IW 16.2.0 Missing librari...
Forum: IntraWeb General Discussion
Last Post: Gregory_Twedt
Today, 04:40 AM
» Replies: 4
» Views: 605
|
VCL conversion
Forum: Delphi General Discussion
Last Post: tobenschain
06-20-2026, 05:00 AM
» Replies: 0
» Views: 55
|
TIWjQDBGrid changing UI
Forum: IntraWeb General Discussion
Last Post: BoostedCruiser
06-08-2026, 02:02 AM
» Replies: 36
» Views: 70,273
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: Fabrizio Conti
06-04-2026, 09:14 AM
» Replies: 3
» Views: 463
|
Access Violation When Val...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
06-03-2026, 08:47 AM
» Replies: 2
» Views: 513
|
Bootstrap5
Forum: IntraWeb General Discussion
Last Post: geraldtatum
06-02-2026, 06:24 AM
» Replies: 1
» Views: 409
|
weakpackageunit contains ...
Forum: IntraWeb General Discussion
Last Post: rlebeau
05-26-2026, 04:56 PM
» Replies: 4
» Views: 517
|
Custom 404 handler
Forum: IntraWeb General Discussion
Last Post: CfawesDwale
05-21-2026, 08:02 AM
» Replies: 0
» Views: 246
|
PopUp Menu
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
05-13-2026, 04:35 AM
» Replies: 4
» Views: 8,200
|
Image question on tiwjqdb...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
05-13-2026, 03:32 AM
» Replies: 3
» Views: 4,117
|
|
|
| (possible) bug with TIdMessageBuilderHtml |
|
Posted by: johnmay - 04-30-2018, 09:43 AM - Forum: Indy
- Replies (3)
|
 |
First of all, thanks for the new forum. It is unclear whether the community.embarcardero.com is a replacement for forums.embarcardero.com but all I see is that community is working and forums is not. Anyway, onto the possible bug.
In the example:
Quote:with TIdMessageBuilderHtml.Create do
try
PlainText.Text := 'plain text goes here';
FillMessage(IdMessage1);
finally
Free;
end;
It says that if PlainTextCharset and PlainTextContentTransfer are not specified it uses default values. The above generates:
Quote:Content-Type: text/plain; charset=us-ascii
plain text goes here
Good so far.
If I add some Unicode stuff:
Quote:with TIdMessageBuilderHtml.Create do
try
PlainText.Text := 'äüø';
FillMessage(IdMessage1);
finally
Free;
end;
Generates:
Quote:Content-Type: text/plain; charset=utf-8
äüø
It seems to use 8bit encoding - which is good... except... Content-Transfer-Encoding: 8bit (or maybe binary) is missing as it is using 8bit content in this case.
I can fix the problem by adding PlainTextContentTransfer := '8bit' or specifying PlainTextContentTransfer := 'quoted-printable' but the problem may be the default behavior of TIdMessageBuilderHtml which should specify this automatically, yet it doesn't. I noticed though that it does so for multipart messages but not for plain-text ones.
Based on the documentation (http://www.indyproject.org/Sockets/Blogs...16.EN.aspx), it should by default use quoted-printable if nothing is specified. And that does work for multipart messages.
I also tried to set the PlainTextCharset explicitly to utf-8 and not set PlainTextContentTransfer and same problem happens and causes an issue with some servers. It is probably the best to always specify the Content-Transfer-Encoding
RFC2046 -Note that if the specified character set includes 8-bit characters and such characters are used in the body, a Content-Transfer-Encoding header field and a corresponding encoding on the data are required in order to transmit the body via some mail transfer protocols, such as SMTP [RFC-821].
|
|
|
| TIdTCPClient on Linux in Delphi 10.2 |
|
Posted by: hsvandrew - 04-27-2018, 10:10 AM - Forum: Indy
- Replies (1)
|
 |
Hi guys, I'm having problems with RemObjects Remoting SDK TROSuperTCPChannel which uses TIdTCPClient to communicate.
When setting active = false -> disconnect or destroying the component which does the same thing, there is a 20-30 second delay before the destruction completes.
This doesn't occur with Delphi under Windows 32 or 64bit.
The issue is occurring on Centos 7 64bit in may case, I haven't tested other linux builds at this time.
I've tested identical code in Lazarus with Synapse and don't have any delays destroying their components that have connected to the same server.
I'm just wondering whether you can test TIdTCPClient running on Centos 7 64bit through a Delphi console app connecting to a Windows TIdTCPServer server on a delphi console app and see if you get the same issue or can see/suggest what might be causing it...
|
|
|
| IdTCPClient on Android: Connecting to non-active network |
|
Posted by: BartKindt - 04-26-2018, 05:16 AM - Forum: Indy
- Replies (17)
|
 |
I am not sure if the Indy system can help here, or that this is a pure Android issue (and forums.embarcadero.com is down again).
Android has an 'Active Network', which is set by the system. I get a notification from the 'ConnectionManager' when Android is changing this 'Active' network.
Problem is that Android claims the active network is "connected" when it has Internet access. NOT when it is in fact connected to a Network!
So I have this situation.
Android is connected to a WIFI network on which runs my Local Database Server. But this WIFI network does NOT have Internet access.
At the same time the Android device is also connected to a 'Mobile' network, which DOES have Internet access.
The ConnectionManager sends a notification that the Active Network is the Mobile network and that the WIFI network is NOT connected (but it is).
My App is aware that on the WIFI my Server is active (because I get a broadcast message from it via the IdUDPServer) on the WIFI network, which includes its IP address).
But when I try to connect to it, this connect request goes out over the Mobile network, NOT to the WIFI network.
So. Is there any way I can force the IdTCPClient to specifically do a 'Connect' to via the WIFI network (of which I can get all details) as opposed to the default 'Active' network?
PS:
I tried to set the BoundIP with the local IP address assigned to the WIFI network; But this does not have any effect:
{code}
IdSSLIOHandlerSocketOpenSSL1 := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Mode := sslmClient; // sslmUnassigned
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.SSLVersions := [sslvTLSv1_2];
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method := sslvTLSv1_2;
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.VerifyDepth := 0;
IdSSLIOHandlerSocketOpenSSL1.OnStatusInfo := TDTBEventHandlers.IdSSLIOHandlerSocketOpenSSL1StatusInfo;
IdSSLIOHandlerSocketOpenSSL1.OnStatus := TDTBEventHandlers.IdSSLIOHandlerSocketOpenSSL1Status;
IdSSLIOHandlerSocketOpenSSL1.OnVerifyPeer := TDTBEventHandlers.IdSSLIOHandlerSocketOpenSSL1VerifyPeer;
IdSSLIOHandlerSocketOpenSSL1.PassThrough := true;
IdTCPClient1.IOHandler := IdSSLIOHandlerSocketOpenSSL1;
if NetworkData.LocalIP <> '' then
begin
IdTCPClient1.BoundIP := NetworkData.LocalIP;
IdSSLIOHandlerSocketOpenSSL1.BoundIP := NetworkData.LocalIP;
LocalLog('=== TCPThread.Execute: Connect using BoundIP: '+NetworkData.LocalIP);
end;
{code}
Thanks, Bart
|
|
|
| Copy to clipboard? |
|
Posted by: cpstevenc - 04-23-2018, 03:22 AM - Forum: IntraWeb General Discussion
- Replies (13)
|
 |
Using 14.2.7 with Tokyo Update 3 , HTTPS enabled.
I have a TIWLabel , that uses RawText = true, which for now is named ( and friendly name) lbl_NumberText
I want to be able to copy the text inside this to the clipboard.
I already know this is tricky in itself, depending on Browser... browser version... http vs https.
Using this as an example @ https://www.w3schools.com/howto/howto_js...pboard.asp
I use the onClick ScriptEvent on a button do just do the javascript code
Code: var copyText = document.getElementById("lbl_NumberText");
copyText.select();
document.execCommand("Copy");
alert("Copied the text: " + copyText.value);
This appears to not work as it never gets to the "alert" section .... I assume the script code is aborting as I am sure "lbl_NumberText" for getElementById is not quite correct.
|
|
|
| First Page from URL |
|
Posted by: AllBars - 04-21-2018, 01:55 PM - Forum: IntraWeb General Discussion
- Replies (6)
|
 |
Hi I have created a new Intraweb (standalone) app with two forms (blueform and greenform) and have given them URL aliases in the OnConfig handler of the server controller using:
void __fastcall TIWServerController::IWServerControllerBaseConfig(TObject *Sender)
{
TGreenForm::SetURL ("/", "Green.html") ;
TBlueForm::SetURL ("/", "Blue.html") ;
}
The green form is set as the main form
If I try to start a session from a browser with the URL: http://127.0.0.1:8888/Blue.html I don't get the blue form, I get the green form. How can I fix this please?
Once the session has been started, the URL does work
I have Intraweb 14.2.7 Ultimate edition, and am using C++Builder 10.2 update 3
Thanks
Ian
|
|
|
| idudpserver max length ? |
|
Posted by: Madammar - 04-20-2018, 01:15 AM - Forum: Indy
- Replies (3)
|
 |
i am trying to send a string length more than 9000 to idudpserver but seems idudpserver does not receive more than 1000 length any idea why ?
|
|
|
| Intraweb in Evaluation Mode |
|
Posted by: lfeliz - 04-19-2018, 10:26 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
Hello,
I removed IW14.1.x form XE3
Ran the installer for 14.2.7, provide my key which expires in August of 2018 and when I open an IW project, it states license expired, running in evaluation mode.
So, I removed IW, ran the clean up tool, rebooted, reinstalled IW 14.2.7 and I still get error, expired, running in val mode.
Should I request a new key? (Email already sent just in case that fixes it.)
|
|
|
|