NetTalk Central

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Web Server - Ask For Help / Re: NT CLient for updating DDNS for DNSSIMPLE
« Last post by Jane on August 16, 2026, 08:09:11 PM »
Ron,
After you get it working in CURL, you can also do some testing with the web client that's in the NetDemo app in the NetTalk examples.
It's useful because you can see what's sent and received and figure out how to make things work.
12
Web Server - Ask For Help / Re: NT CLient for updating DDNS for DNSSIMPLE
« Last post by rjolda on August 16, 2026, 03:11:24 PM »
HI Bruce,
This is new to me as I rely on Net Talk products to do the work for me!  I did not know that I could run curl from command line.  That is a great way to test the login authorization.  Will give it a go. Thanks for the info.
Ron
13
Web Server - Ask For Help / Re: NT CLient for updating DDNS for DNSSIMPLE
« Last post by Bruce on August 16, 2026, 03:25:21 AM »
If you run the CURL command in a command window (aka DOS prompt), does it work?
14
Web Server - Ask For Help / Re: NT CLient for updating DDNS for DNSSIMPLE
« Last post by rjolda on August 14, 2026, 07:58:20 AM »
HI Jane,
I did re-look at DNS stuff. Indeed, it is the FULL API for DNSSIMPLE.  However, DNS Simple has  their own lightweight Dynamic DNS (DDNS) implementation, available at ddns.horse.
They provide a Curl example:  Here is an example using curl: curl -i "https://ddns.horse/nic/update?hostname=example.com&myip=1.2.3.4&myipv6=2001:db8::8a2e:370:7334" -u "accountid:token"
On capesoft I got the conversion
  net.Start()
  net.Authorization = net.CreateAuthorizationString ('accountid','token', Net:WebBasicAuthentication,true)
  net.Get('https://ddns.horse/nic/update?hostname=example.com&myip=1.2.3.4&myipv6=2001:db8::8a2e:370:7334')
I am using my Account ID for the authorization string "accountid"  and my OAuthToken for the 'token' part of it.

However, I am getting authorization failure. 
So, I can't get past the authorization with my credentials.  I did double check my credentials and they are correct. 
That is where I am at,
Ron
15
Web Server - Ask For Help / Re: NT CLient for updating DDNS for DNSSIMPLE
« Last post by Jane on August 13, 2026, 05:13:16 PM »
No, I haven't.
Have you tried the examples in the nettalk\NetDns folder?
16
Web Server - Ask For Help / NT CLient for updating DDNS for DNSSIMPLE
« Last post by rjolda on August 13, 2026, 11:13:12 AM »
Hi,
I have a DNSSIMPLE account for my DNS resolution.  My ISP gives me a Dynamic IP address.  DNSSIMPLE has an API to update DNS records when your HOST IP address changes.
Anyone with NetWebClient code to update DNS record when the host IP address changes. 
I have set up an OAUTH token on my DNSSIMPLE account.
They have an API but I have not got it working.
Anyone have working code that they can share? 
Thanks,
Ron
17
Web Server - Ask For Help / Re: How to translate C# API call to NT
« Last post by rjolda on August 13, 2026, 07:53:52 AM »
HI,
THe code above was AI Generated and did NOT WORK!

However, I massaged the code to get this to work:

 URL =('https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVIN/' & VINData & '?format=xml')
 
 net.contentType = 'application/x-www-form-urlencoded'
 net.SetAccept('json')
 net.Get(url) 


And, As Bruce said, the return is in the  .PageReceived  where I trap errors and then parse the return message:

log = clip(log) & '<13,10>------<13,10>' & self.ThisPage.GetValue()
st4.SetValue(log)  ! put the log into st object
do Extract_it   ( routine to extract out the fields.)

Ron
18
do you have dynamic compression turned on?
19
Web Server - Ask For Help / Re: How to translate C# API call to NT
« Last post by Bruce on August 12, 2026, 11:43:19 PM »
Ton,
no, that code Ron got is incorrect.

Responses come back into .PageReceived

20
Web Server - Ask For Help / Re: netwebclient : IPv6 addresses and port
« Last post by Bruce on August 12, 2026, 11:39:49 PM »
Hi Ton,

I think you answered your own question;

>> ::1:8090/yadayada

that's not correct syntax.

>> using [::1]:8090/yadayada

that is correct syntax. If you are adding a port you need to add [ ]
Pages: 1 [2] 3 4 ... 10