| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 98,525
» Latest member: 6292brcom
» Forum threads: 2,426
» Forum posts: 11,371
Full Statistics
|
| Online Users |
There are currently 772 online users. » 1 Member(s) | 768 Guest(s) Bing, Google, Yandex, 6292brcom
|
| Latest Threads |
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
09-11-2026, 09:49 PM
» Replies: 1
» Views: 237
|
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 193
|
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 202
|
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 508
|
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 259
|
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 679
|
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 243
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,292
|
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 381
|
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 1,016
|
|
|
| CORS issue ? |
|
Posted by: duffo64 - 01-08-2022, 07:47 AM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
Hi All,
I am trying to open a site (some intranet) into an TIWUrlWindow, but I am not able to see it. Chrome console shows:
Refused to frame 'http://anhost.mydomain.com:8880/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".
Is that server refusing to be iFramed ? I already followed Jose Nilton's post about headers injection.
Code: void __fastcall TIWServerController::IWServerControllerBaseAfterDispatch(THttpRequest *Request,
THttpReply *aReply)
{
aReply->AddHeader("Content-Security-Policy",
"default-src " + System::Sysutils::QuotedStr("self") + " http: " + System::Sysutils::QuotedStr("unsafe-inline") + " " + System::Sysutils::QuotedStr("unsafe-eval") + "; " +
"frame-src " + System::Sysutils::QuotedStr("self") + " http: " + System::Sysutils::QuotedStr("unsafe-inline") + " " + System::Sysutils::QuotedStr("unsafe-eval") + "; " +
"script-src " + System::Sysutils::QuotedStr("self") + " http: " + System::Sysutils::QuotedStr("unsafe-inline") + " " + System::Sysutils::QuotedStr("unsafe-eval") + "; " +
"style-src " + System::Sysutils::QuotedStr("self") + " http: " + System::Sysutils::QuotedStr("unsafe-inline") + "; " +
"img-src " + System::Sysutils::QuotedStr("self") + " http: data:; " +
"object-src " + System::Sysutils::QuotedStr("self") + "; " +
"media-src " + System::Sysutils::QuotedStr("self") + " http:; " +
"frame-ancestors " + System::Sysutils::QuotedStr("self") + " http:; " +
"base-uri " + System::Sysutils::QuotedStr("self") + " http:");
aReply->AddHeader("Access-Control-Allow-Origin", "*");
Thank You
/Claudio
Hmmm..... Does not makes sense tweaking IW side. Even turning off headers injection the error still the same, so it seems just their policy.....
|
|
|
| Searching two string at a time in the Object of emails |
|
Posted by: luigisic - 01-07-2022, 06:22 PM - Forum: Indy
- Replies (2)
|
 |
Hello,
with SearchMailBox is possible to search emails with some criteria.
I need to search emails that Object contains the string "ACC: " and emails that Object contains the string "CON: ".
Can i search both strings at a time?
This code
Code: SearchInfo.Date := 0;
SearchInfo.Size := 0;
SearchInfo.SearchKey := skUnseen;
SearchInfo.Text := '';
SearchInfoArray[0] := SearchInfo;
SearchInfo.SearchKey := skSubject;
SearchInfo.Text := 'ACC: ';
SearchInfoArray[1] := SearchInfo;
SearchInfo.SearchKey := skSubject;
SearchInfo.Text := 'CON: ';
SearchInfoArray[2] := SearchInfo;
if IMAP.SearchMailBox(SearchInfoArray) then
is right?
It seems not right because I dont find the emails.
if i search only one string at a time i found the emails.
Where I'm wrong?
Thanks
|
|
|
| Best strategy to avoid to download all readed emails |
|
Posted by: luigisic - 01-05-2022, 04:49 PM - Forum: Indy
- Replies (3)
|
 |
I can read emails with the idIMAP component with code like this:
IMAP.SelectMailBox('INBOX');
IMAP.StatusMailBox('INBOX', IMAP.MailBox);
if IMAP.MailBox.UnseenMsgs > 0 then ...
But, because the emails are over 3.000 (that increases about of 100 emails per month) this code:
IMAP.SelectMailBox('INBOX');
runs for about three minutes and more.
This code read even the email readed even I don't want to do anymore.
I needs to repeat read new email ever 10 minutes but i will lost about 3 minutes every time due to IMAP.SelectMailBox('INBOX'); even I don't have new emails.
What is the best strategy to avoid to lost about 3 minutes every time i do: IMAP.SelectMailBox('INBOX');
Thanks
|
|
|
| Intraweb ISAPI Monitoring ?? |
|
Posted by: ShaneStump - 01-05-2022, 12:24 AM - Forum: IntraWeb General Discussion
- Replies (11)
|
 |
Howdy!
My IW app is deployed as an ISAPI.dll and for some unknown reason, it quits responding after a lot of activity (not sure why).
Has any one implemented a way of monitoring the module to see if it is still running? And if not, how to restart it in ISAPI?
I guess I could write a service that does a rest call to the IW app every 15 to 30 seconds to see if it responds.
If I can't figure out how to restart it, I guess I could text message or e-mail an administrator.
Any how, open to ideas.
Happy New Year!
Shane
|
|
|
| How can I tell if email has been read Indy 10? |
|
Posted by: OldBob1938 - 01-02-2022, 07:02 PM - Forum: Indy
- Replies (2)
|
 |
Is there a way to tell if a recipient has opened or even received the email I sent? I've looked everywhere in idSMTP and idMSG. I see that idMSG has a ReceiptRecipients property and idSMTP has an OnFailedRecipient, but I don't know how to make use of either of these.
|
|
|
| TIWBSTabControl in TFrame created runtime does not respond to OnAsyncChange |
|
Posted by: oystein.jakobsen@sas.no - 12-29-2021, 10:08 AM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
I have a TIWBSTabControl in a frame.
When this frame is created at runtime (with a TIWBSRegion as parent), the tabcontrol OnAsyncChange is not responding until the page is reloaded/refreshed.
If the parent TIWBSRegion.AsyncRefreshControl is called after frame create, the tabcontrol OnAsyncChange fires, but the same call makes TIWBSButtons in same frame unresponsive.
Workaround was to send a javascript which triggers a callback event, but could this be a TIWBSTabControl issue when created runtime within a frame?
Workaround script where "ajaxCallbackAction" is a custom js library function used to trigger callback events:
$("#'+fMyFrame.MyTabControl.HTMLName+'_tabs").off("shown.bs.tab").on("shown.bs.tab", function(e){ajaxCallbackAction("mytabchange",$(e.target).attr("tabindex"));});
|
|
|
| System.OverflowException when calling ByteArray.AsDelphiArray |
|
Posted by: gezaszabo - 12-25-2021, 10:53 PM - Forum: CrossTalk General Discussion
- Replies (9)
|
 |
Hi,
I am transferring byte arrays from .Net to Delphi. This operation is repeated thousands of times and the length of the byte array is beteeen 5k and 500k. The operations runs without issues for a couple of minutes but then crashes on the .Net side with the following error:
System.OverflowException
HResult=0x80131516
Message=Arithmetic operation resulted in an overflow.
Source=Atozed.CrossTalk.Right
StackTrace:
at Atozed.CrossTalk.Right.CTStreamReader.Read() in Atozed.CrossTalk.Right\CTStreamReader.cs:line 67
This exception was originally thrown at this call stack:
Atozed.CrossTalk.Right.CTStreamReader.Read() in CTStreamReader.cs
On the Delphi side I am using ByteArray.AsDelphiArray to get the bytes. The exception is happening when this method is called.
If I take the same byte array which causes this and transfer it in isolation (e.g. without making any other transfers beforehand) then everything works fine. So the error is caused by repeating the operation many times with different arrays.
I have already tried to use CopyToDelphiArray instead but it yields the same error.
I have also added a logic which catches this error and reverts to use a for loop to get the bytes from the ByteArray by index. This works but unacceptable slow. Note that once the exception was thrown AsDelphiArray only works for a couple of calls and then the same exception is thrown.
|
|
|
|