NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Bruce

Pages: [1] 2 3 ... 745
1
Web Server - Ask For Help / Re: Proxy server for let's encrypt?
« on: September 21, 2025, 10:42:06 PM »
You succeeded with the correct approach Jeff, the DNS challenge is the only way to go if port 80 is closed. However I thought I'd comment on this just to clear it up a bit;


     So, I see a proxy tab that has a check box to "allow acme client to use proxy server".  If I can get the IT Dept. to create a simple proxy server that is isolated but has 80 and 443 open, would this work?


that Proxy option is for the ACME _Client_. It does not bypass the need for the server to serve the challenge file over port 80. So, no, that approach was not going to be useful to you.

cheers
Bruce

2
Web Server - Ask For Help / Re: Give focus back to Browse after OnClick
« on: September 21, 2025, 10:36:55 PM »
It sounds to me like there's a JavaScript error on the page when saving.
I'd need to see an example though to understand what the error might be.

4
Web Server - Ask For Help / Re: AI / machine learning
« on: August 11, 2025, 01:41:58 AM »
Hi Rupert,

Your question is ambiguous. Define more what your clients are asking for.
Are they asking for AI in the Clarion IDE? In your program? In something else?
If they want AI in your program, what sort of AI are they looking for? Programming? Image recognition? Something else?

Cheers
Bruce

5
Hi David,

Please post an example app & dict so I can duplicate here.

And which build of the DriverKit & NetTalk are you using?

Cheers
Bruce

6
Web Server - Ask For Help / Re: How to debug this slow request?
« on: August 03, 2025, 06:27:14 PM »
Hi Johan,

If it's the NEXT that takes the time, then your VIEW is likely doing a full table scan (perhaps multiple of them in TPS) to construct the VIEW. Post the View declaration here, the file declarations (for files included in the View) and also the contents of the View Filter.

Cheers
Bruce

7
Web Server - Ask For Help / Re: How to debug this slow request?
« on: July 25, 2025, 05:08:46 AM »
These are just timer events in the NetTalk DLL.
They're unrelated to your issue.

My guess is that the reply to the browser is not completing. ie you have some code in the thread, after the drop down is populated, which delays the ending of the thread. In that case the connection is not closed, so the browser does not start processing the reply.

Cheers
Bruce

8
In the WebServer procedure, NetTalk extension, Performance tab (I think) there's an option along the lines of "save server state between runs".
In your system is this option on?


9
 correct the URL [http://sesiro.cloudcover.insure/apiTotalPolicyRecalc] to [https://sesiro.cloudcover.insure/apiTotalPolicyRecalc]

10
Web Server - Ask For Help / Re: sending SMS via GSM Modem
« on: June 14, 2025, 11:15:58 PM »
more likely you'll use the WinEvent Serial Port functions.
It all depends on your SMS modem, and how it connects to the PC.

Cheers
Bruce

11
Web Server - Ask For Help / Re: Api endpoint stream - how?
« on: May 22, 2025, 07:01:32 PM »
Hi Niels,

>> I have some static ftp files that I need to expose via a REST api.

are you over thinking this?
It sounds to me like you just put the static file in the web folder (or sub folder), then the client can just GET it (ie use a regular WebClient to Fetch the file.)

I'm not sure this needs to be in an API?

But assuming it does need to be an API;

Add a StringTheory object to the RETURNS tab of the API.
Put your file in there (probably Base64 encoded.)

>> I'm aware that I can BASE64 encode them but the client would prefer them as "files".

Hence my suggestion above that this is just a regular GET.
If you want more control, then check out the FileDownload (40) example. That has a generic "ServeDocument" procedure in the app for serving files.

An API method will return a JSON or XML response - and of course any binary in there would need to be appropriately encoded at the very least for Json or XML.
I recommend Base64 because that's easier.

Cheers
Bruce




Cheers
Bruce


12
Web Server - Ask For Help / Re: Hide Webcam after photo is taken
« on: May 21, 2025, 05:52:31 PM »
>>  as if the webcam is set to ALWAYS display no matter what the programmer (like me) is trying to do.

*how* are you trying to make it "not display" ?


13
Web Server - Ask For Help / Re: Api endpoint stream - how?
« on: May 19, 2025, 07:20:40 PM »
Can you define a bit more what you mean by "stream" a PDF file?
Tell us a bit more abut the context for this, and how "streaming" would be different from the normal "serving" ?

cheers
Bruce

14
I think you're over thinking this.
The Take Photo button takes the photo, and sends it to the server.
So you can process it however you like on the server.

The browser really only needs to update the displayed picture after processing.

We can chat in the webinar if you need more ideas.

Cheers
Bruce

15
try
    p_web.HeaderDetails.ContentDisposition =  'attachment; filename="'& CLIP(Loc:DownloadFileName) &'"'
    p_web.HeaderDetails.CacheControl = 'no-store, no-cache, must-revalidate, private,post-check=0, pre-check=0, max-age=0'


Pages: [1] 2 3 ... 745