31
Web Server - Ask For Help / Re: Proxy server for let's encrypt?
« Last post by rjolda on September 03, 2025, 03:34:26 PM »Good work Jeff.
I have found that asking the right question and using responses from NG and a little research and you can get most problems solved! I am happy that you were able to get this to work!
Ron
I have found that asking the right question and using responses from NG and a little research and you can get most problems solved! I am happy that you were able to get this to work!
Ron
32
Web Server - Ask For Help / Re: Proxy server for let's encrypt?
« Last post by jking on September 03, 2025, 03:05:44 PM »Jane,
I'm using the one Bruce recommends and supports in NT 14, DNSimple. I chose the free "Solo" plan for now and registered a new domain. Was surprisingly simple to get this working by following the steps in the NT docs.
The University were I work, won't be opening ports, like 80 and 443, "to the public", as they say. I have to connect to their network via a VPN (GlobalProtect), to manage my three servers and apps. Using DNS challenge was the only way I could get out to Let's Encrypt. With this scenario, local network users, or outside users who are authorized to run the VPN, can access my NT 14 server apps. Other outside users are a problem as port 443 is not open on the public side...at least for my three servers. Still trying to sort this out with them.
Thanks,
Jeff
I'm using the one Bruce recommends and supports in NT 14, DNSimple. I chose the free "Solo" plan for now and registered a new domain. Was surprisingly simple to get this working by following the steps in the NT docs.
The University were I work, won't be opening ports, like 80 and 443, "to the public", as they say. I have to connect to their network via a VPN (GlobalProtect), to manage my three servers and apps. Using DNS challenge was the only way I could get out to Let's Encrypt. With this scenario, local network users, or outside users who are authorized to run the VPN, can access my NT 14 server apps. Other outside users are a problem as port 443 is not open on the public side...at least for my three servers. Still trying to sort this out with them.
Thanks,
Jeff
33
Web Server - Ask For Help / Re: NetWebClient - post data?
« Last post by Jane on September 03, 2025, 09:02:06 AM »Install Fiddler?
Try getting it to work with the NetDemo program and look at the detailed log there.
Temporarily compile your app with
NetShowSend=>1
and maybe NetShowReceive=>1
Try getting it to work with the NetDemo program and look at the detailed log there.
Temporarily compile your app with
NetShowSend=>1
and maybe NetShowReceive=>1
34
Web Server - Ask For Help / Re: news.softvelocity.com is VERY VERY SLOW and not useable - am I the only one??
« Last post by Bruce on September 03, 2025, 07:07:08 AM »35
Web Server - Ask For Help / NetWebClient - post data?
« Last post by JohanR on September 02, 2025, 10:02:06 PM »Hi,
How do I check the actual Post request?
Having some issues and want to make sure that all the bits are in the correct places.
Current specific error that I'm getting is that the bearer token is invalid, as far as I can it's good and has not expired.
So want to see what the post data actually looks like, complete with header etc...
thanks
Johan
How do I check the actual Post request?
Having some issues and want to make sure that all the bits are in the correct places.
Current specific error that I'm getting is that the bearer token is invalid, as far as I can it's good and has not expired.
So want to see what the post data actually looks like, complete with header etc...
thanks
Johan
36
Web Server - Ask For Help / Re: Proxy server for let's encrypt?
« Last post by Jane on September 02, 2025, 07:27:36 PM »Jeff,
What DNS provider are you using with the challenge?
What DNS provider are you using with the challenge?
37
Web Server - Ask For Help / Re: Proxy server for let's encrypt?
« Last post by jking on September 02, 2025, 05:37:36 PM »Hi Ron,
I managed to get the DNS challenge to work and now successfully get certificates without port 80 open. Thanks to you and others who responded.
Jeff
I managed to get the DNS challenge to work and now successfully get certificates without port 80 open. Thanks to you and others who responded.
Jeff
38
Web Server - Ask For Help / Re: 2Step process - Bearer token - OAuth?
« Last post by JohanR on September 01, 2025, 09:38:45 PM »Hi Jane
Thanks for detailed reply as always!
I'm glad to report after reading your reply and method, it's the route I am busy with.
Feels good to know I am on the right path
After reading the OAuth docs, I also went the route of doing my own thing.
I've done quite a few different API's but not the 2 step process.
Just seemed more simple and in control than trying to understand the OAuth process.
I'm almost done, so far so good.
All seems pretty simple, and thanks to NT and the Codewriter takes an enormous amount of time, pain and possible mistakes out of it.
thanks
Johan
Thanks for detailed reply as always!
I'm glad to report after reading your reply and method, it's the route I am busy with.
Feels good to know I am on the right path

After reading the OAuth docs, I also went the route of doing my own thing.
I've done quite a few different API's but not the 2 step process.
Just seemed more simple and in control than trying to understand the OAuth process.
I'm almost done, so far so good.
All seems pretty simple, and thanks to NT and the Codewriter takes an enormous amount of time, pain and possible mistakes out of it.
thanks
Johan
39
Web Server - Ask For Help / Re: 2Step process - Bearer token - OAuth?
« Last post by Jane on September 01, 2025, 02:24:28 PM »The one system I've got in production doing that, Johan, I wrote 7+ years ago and did my own thing rather than whatever OAuth was available at that time.
It's been working fine since.
I guess the question would be whether each of your customers has his own credentials, or whether you are contacting the API as you.
I think a lot of the rationale for OAuth is when you're acting on behalf of somebody else. In my app, that's not the case.
I have two generic procedures:
1. Checks the expiration of my existing token. Fetches a new token if the old one is within 5 minutes of expiry.
2. General API-calling NetTalk client. It's called by something else. It gets a token from the check-and-update-if-needed token procedure, then fills a StringTheory object with what's received from the API.
Then I have various procedures for individual API endpoints I need.
Each procedure constructs the URL with its parameters list. Then passes the URL, a String Theory object, and anything else needed to the api-calling procedure. When the latter has completed, the procedure parses the String Theory object and does its thing.
I posted more details a while back.
NOTE: I've fixed this code since then.
Instead of the custom header I was using in that old post, I now use ThisWebClient.Authorization
https://www.nettalkcentral.com/forum/index.php?topic=9562.msg39234#msg39234
It's been working fine since.
I guess the question would be whether each of your customers has his own credentials, or whether you are contacting the API as you.
I think a lot of the rationale for OAuth is when you're acting on behalf of somebody else. In my app, that's not the case.
I have two generic procedures:
1. Checks the expiration of my existing token. Fetches a new token if the old one is within 5 minutes of expiry.
2. General API-calling NetTalk client. It's called by something else. It gets a token from the check-and-update-if-needed token procedure, then fills a StringTheory object with what's received from the API.
Then I have various procedures for individual API endpoints I need.
Each procedure constructs the URL with its parameters list. Then passes the URL, a String Theory object, and anything else needed to the api-calling procedure. When the latter has completed, the procedure parses the String Theory object and does its thing.
I posted more details a while back.
NOTE: I've fixed this code since then.
Instead of the custom header I was using in that old post, I now use ThisWebClient.Authorization
Code: [Select]
! ThisWebClient.CustomHeader = 'Authorization: Bearer '&clip(pToken) !changed to ThisWebClient.Authorization 12/31/2024
ThisWebClient.Authorization = 'Bearer ' & clip(pToken)
https://www.nettalkcentral.com/forum/index.php?topic=9562.msg39234#msg39234
40
Web Server - Ask For Help / 2Step process - Bearer token - OAuth?
« Last post by JohanR on September 01, 2025, 08:29:09 AM »Hi,
Looking to get some JSON data from a 3rd party API server tracking , Fedex
I have to request the bearer token using credentials, and then use the returned bearer token to fetch the data.
The bearer token expires after an hour.
Before I dive in and code the 2 steps , this seems to be exactly the same as OAuth.
Am I on the right path?
Or as simple to code the 2 steps?
thanks
Johan
Looking to get some JSON data from a 3rd party API server tracking , Fedex
I have to request the bearer token using credentials, and then use the returned bearer token to fetch the data.
The bearer token expires after an hour.
Before I dive in and code the 2 steps , this seems to be exactly the same as OAuth.
Am I on the right path?
Or as simple to code the 2 steps?
thanks
Johan