| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
SSL Revisited
Forum: IntraWeb General Discussion
Last Post: rlebeau
10-19-2026, 09:24 PM
» Replies: 3
» Views: 274
|
SpinBox Button Size
Forum: IntraWeb General Discussion
Last Post: MikeComb
10-19-2026, 06:12 PM
» Replies: 0
» Views: 72
|
Rerendering CG Tab Contro...
Forum: IntraWeb General Discussion
Last Post: MikeComb
10-19-2026, 05:21 PM
» Replies: 0
» Views: 74
|
CSS in CGDevTools
Forum: IntraWeb General Discussion
Last Post: MikeComb
10-13-2026, 04:12 PM
» Replies: 2
» Views: 457
|
Help with TIWPaintBox
Forum: IntraWeb General Discussion
Last Post: EmoPal
10-13-2026, 08:44 AM
» Replies: 0
» Views: 260
|
KanBan like behaviour
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
10-06-2026, 09:31 PM
» Replies: 6
» Views: 1,189
|
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
10-02-2026, 04:14 PM
» Replies: 1
» Views: 771
|
TIWSummernote Issue
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
09-30-2026, 07:34 PM
» Replies: 1
» Views: 443
|
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:33 PM
» Replies: 1
» Views: 794
|
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:31 PM
» Replies: 2
» Views: 943
|
|
|
| Is it possible to combine TIdTCPServer components with TClientSocket ? |
|
Posted by: Max2009 - 03-20-2023, 06:08 PM - Forum: Indy
- Replies (5)
|
 |
Hello. I am using Embarcadero C++ and I have Indy 10.6.2.0 installed.
I have 4 components on my form:
TIdTCPClient *Client;
TIdTCPServer *Server;
TClientSocket *ClientSocket;
TServerSocket *ServerSocket;
Client is configured to connect to Server;
ClientSocket is configured to connect to ServerSocket;
If I assign ClientConnect() to Button1::OnClick event, it connects successfully.
If I assign ClientSocket->Active=true to Button2::OnClick event, it also connects successfully.
However, if I try to connect by setting ClientSocket->Active=true in Server::OnConnect event:
{
ClientSocket->Active=true;
}
It doesn't work. The same is true if I try to connect in OnContextCreate or OnExecute events.
Why is this happening?
|
|
|
| TIdHTTP REST OAuth2 |
|
Posted by: Boba TC - 03-19-2023, 11:56 PM - Forum: Indy
- Replies (2)
|
 |
Dear Reader;
in my 1st attempt to connect to a REST server with TIdHTTP all I was told to do is to POST an HTTP request in the form:
"https://www.server.com/api/authentication/oauth2/token?grant_type=password&username=***&password=***&client_id=***&client_secret=***"
with server-side generated username, password, client_id and client_secret:
Code: TIdHTTP *IdHTTP;
TIdSSLIOHandlerSocketOpenSSL *IdSSLIOHandlerSocketOpenSSL1;
TIdLogFile *IdLogFile1;
AnsiString sURL0, sResp;
IdHTTP->IOHandler = IdSSLIOHandlerSocketOpenSSL1;
IdHTTP->Intercept = IdLogFile1;
TStringList *slHttpRspns;
//...
sURL0 = "https://www.someserver.com/api/authentication/oauth2/token?grant_type=password&username=nome_de_usuário%40oldshoes.com&password=metellno1&client_id=wqeqweqwewqwewq&client_secret=qwewqewewqe";
try{
slHttpRspns = new TStringList;
IdLogFile1->Active = true;
sResp = IdHTTP->Post( sURL0, slHttpRspns );
Memo1->Lines->Add( "IdHTTP->ResponseCode="+IntToStr(IdHTTP->ResponseCode) );//500
//if succeeded the server should come back with a token in JSON form
}catch( Exception &e ){
//...
}
IdHTTP->ResponseCode==500;
IdLogFile has the following:
Stat Connected.
Sent DateTime: POST /api/authentication/oauth2/token?grant_type=password&username=nome_de_usuário%40someclient.com&password=metellno1&client_id=wqeqweqweqewqwewq&client_secret=qwewqewqewqewqe HTTP/1.1
Content-Type: application/json
Content-Length: 0
Host: www.someserver.com
Accept: text/html,application/xhtml+xml,application/xml,application/json;q=0.9,*/*;q=0.8
User-Agent: Mozilla/3.0 (compatible; Indy Library)
Recv DateTime: HTTP/1.1 500 Server Error
Content-Length: 347
Content-Type: application/json
Strict-Transport-Security: max-age=31536000; includeSubDomains;
Content-Security-Policy: default-src 'self'; font-src *;img-src * data:; script-src *; style-src *;
Referrer-Policy: strict-origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-SL-Proxy: false
X-XSS-Protection: 1; mode=block
Date: DateTime
{
"failure" : "Pipeline execution failed while waiting for output",
"reason" : "Snap errors: {ruuid=<***some guid***>, label=Decode JSON, failure=Failed to read from binary input view, reason=No content to map due to end-of-input, resolution=Please address the reported issue.}",
"resolution" : "Fix the reported errors"
}
JSON at the bottom of IdLogFile is the server Error detailed.
I have no idea what all that is about, so I ran that same request with PostMan ver.9.31 - it came back with no error and new token in its response.
What do I need to change on VCL/Indy side in order to mimic the PostMan's behaviour? Is this information enough to correct the error?
Please help. Thanks in advance. Boba TC.
|
|
|
| Browser dimensions OnAsyncResize (Priority support) |
|
Posted by: valmeras - 03-18-2023, 01:00 PM - Forum: IntraWeb General Discussion
- Replies (7)
|
 |
I am using Intraweb 15.2.69 with Rad Studio 10.2.3 (C++ Builder)
I am a paid user so I suppose I have access to priority support.
I need to have the right dimensions on the user's browser using the AsyncResize event.
If I try to write the positions of elements using those information they are totally wrongly positioned.
So I wrote the simple code below to see the dimensions returned.
void __fastcall TIWForm1::IWAppFormAsyncResize(TObject *Sender, TStringList *EventParams)
{
WebApplication->ShowAlert("Height : " + IntToStr(WebApplication->FormHeight));
WebApplication->ShowAlert("Height : " + IntToStr(WebApplication->FormHeight));
}
I realized that unfortunately the dimensions are not right.
But if I write a JavaScript code using window.addEventListener("resize", ), I get the right dimensions! The problem is that I need to use executeAjaxEvent() to get it on the server side and that slows the rendering of my application.
I had the same problem with Intraweb 14. I upgraded to Intraweb 15 hoping that the issue is resolved. But apparently not!
|
|
|
| 3 errors with FIreDAC |
|
Posted by: raulevm - 03-16-2023, 01:42 PM - Forum: IntraWeb General Discussion
- Replies (7)
|
 |
Dear, use delphi 11.2.1 and IW 15.2.69
1.- FireDAC doesn't work with a data module in IW, only if I put the components in the IWUserSession or in the IWForms it works fine.
2.- I have a mandatory required field (required=true in IW). When deleting a record (FDQuery.delete) a message appears asking you to enter the required field.
3.- I have a non-null field from a SQL Server database (required=false in IW so that it doesn't give me problems). When deleting the record I get an error message that you need to enter the required field.
The only way to solve this is by setting required=False and in the database that the field allows entering null values.
I don't know if this only happens to me but since I don't have time to find out and the IntraWeb documentation is so bad, it can't work with FireDAC or it simply can't work with IntraWeb
|
|
|
| Intraweb 15 missing AllowMultipleSessionsPerUser |
|
Posted by: valmeras - 03-15-2023, 07:58 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
I am using Rad Studio 10.2.3 (C++ Builder)
I was using Intraweb 14.2.7 Ultimate version. I have the key for this one.
Today I uninstalled Intraweb 14 and Installed 15.2.69, evaluation version, to test some features.
And unfortunately I noticed that the AllowMultipleSessionsPerUser is missing in the server controller options.
Is that normal?
|
|
|
| OnChange problems |
|
Posted by: goc1172 - 03-13-2023, 04:56 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
I made a form with 100+ TIWComboBox questions on one page.
Using the OnChange event, the page is updated on every response. That is an inconvenience when we are at the end of the Form because it returns to the beginning every time it responds.
Is there any code that solves this problem? (Ps. I would not want to use Async events).
Best regards
|
|
|
| TIdMessage.LoadFromStream: Missing fields |
|
Posted by: BartKindt - 03-06-2023, 10:29 PM - Forum: Indy
- Replies (10)
|
 |
I use the IMAP system to dowload an email.
MSG: TIdMessage;
IMAP: TIdIMAP4;
I then call IMAP.UIDRetrieve(IntToStr(IMAP.MailBox.SearchResult[i]), MSG);
I can now read all fields like From, Subject etc. fine.
Then the entire email is loaded into a Stream using
IMAP.UIDRetrieveNoDecodeToStream(IntToStr(IMAP.MailBox.SearchResult[i]), AStream);
This Stream is then saved to file, as an .eml file.
I can load this file with an email program fine, all data complete.
The same Stream is internally kept.
But when I afterwards use an IdMessage.LoadFromStream, all fields like From, Subject, etc. are all empty.
The LoadFromStream does not seem to initialize the fields.
It seems only the IMAP does this, during the call to IMAP.UIDRetrieve.
How do I get my data back in the TIdMessage after a LoadFromStream?
|
|
|
| TIWVideo slow to load |
|
Posted by: davidbaxter - 03-06-2023, 07:59 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
TIWVideo is a great component, but it seems to take a very long time to load before playing. In this case 'long time' is 20-30 seconds. Sometimes the circular hourglass will show for that time, sometimes it comes up and goes away after 2 seconds, which leaves the user not knowing what is happening, or if.
I know files must be in .mp4 format, but there are a lot of options within that format. What are the recommended settings for, say, converting a .m2ts such that it would load quickly? Or, in general, what are the 'best practices' for using TIWVideo?
Thank you.
|
|
|
|