1
Web Server - Ask For Help / Re: How to translate C# API call to NT
« Last post by rjolda on Today at 03:29:15 PM »Wow, I just put it into llamacoder.dev and this is what I got back! Now to test it.
Here's the Clarion equivalent of your C# code:
```clarion
PROGRAM
INCLUDE('NetWebClient.INC') ! Include for HTTP client functionality
INCLUDE('StringTheory.INC') ! Include for StringTheory class (string manipulation)
MAP
END
VINData STRING('3GNDA13D76S000000;5XYKT3A12CG000000;')
URL STRING('https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVINValuesBatch/')
Response STRING(100000)
ErrorMsg STRING(1000)
ST StringTheory
WebClient NetWebClient
PostData CSTRING(1000)
CODE
! Prepare the POST data
ST.SetValue('data=' & VINData & '&format=json')
ST.URLEncode()
PostData = ST.GetValue()
! Configure the web client
WebClient.SetSSL() ! Enable SSL for HTTPS
WebClient.SetHeader('Content-Type', 'application/x-www-form-urlencoded')
WebClient.SetHeader('Accept', 'application/json')
! Make the POST request
IF WebClient.Post(URL, PostData, Response)
! Success - Response contains the JSON data
! Process the response here
ELSE
! Error handling
ErrorMsg = WebClient.GetError()
! Handle error here
END
```
Notes:
1. This uses the NetTalk WebClient class (NetWebClient) which is the standard HTTP client in Clarion
2. StringTheory is used for URL encoding the POST data
3. You'll need to have NetTalk installed in your Clarion environment
4. The response will be in the Response variable as a JSON string
5. Error handling is done through WebClient.GetError() if the request fails
Here's the Clarion equivalent of your C# code:
```clarion
PROGRAM
INCLUDE('NetWebClient.INC') ! Include for HTTP client functionality
INCLUDE('StringTheory.INC') ! Include for StringTheory class (string manipulation)
MAP
END
VINData STRING('3GNDA13D76S000000;5XYKT3A12CG000000;')
URL STRING('https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVINValuesBatch/')
Response STRING(100000)
ErrorMsg STRING(1000)
ST StringTheory
WebClient NetWebClient
PostData CSTRING(1000)
CODE
! Prepare the POST data
ST.SetValue('data=' & VINData & '&format=json')
ST.URLEncode()
PostData = ST.GetValue()
! Configure the web client
WebClient.SetSSL() ! Enable SSL for HTTPS
WebClient.SetHeader('Content-Type', 'application/x-www-form-urlencoded')
WebClient.SetHeader('Accept', 'application/json')
! Make the POST request
IF WebClient.Post(URL, PostData, Response)
! Success - Response contains the JSON data
! Process the response here
ELSE
! Error handling
ErrorMsg = WebClient.GetError()
! Handle error here
END
```
Notes:
1. This uses the NetTalk WebClient class (NetWebClient) which is the standard HTTP client in Clarion
2. StringTheory is used for URL encoding the POST data
3. You'll need to have NetTalk installed in your Clarion environment
4. The response will be in the Response variable as a JSON string
5. Error handling is done through WebClient.GetError() if the request fails
2
Web Server - Ask For Help / How to translate C# API call to NT
« Last post by rjolda on Today at 03:24:11 PM »HI,
I am trying to write an API to send auto VIN number to NHTSA and get an XML or JSON return regarding the information about the auto.
This is the C# POST Code:
string text = "3GNDA13D76S000000;5XYKT3A12CG000000;";
string url = @"https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVINValuesBatch/";
var nameValues = new Dictionary<string, string>();
nameValues.Add("data", text);
nameValues.Add("format", "json");
HttpClient client = new HttpClient();
client.BaseAddress = new Uri(url);
// using FormUrlEncodedContent
var name = new FormUrlEncodedContent(nameValues);
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
System.Threading.CancellationToken token = new System.Threading.CancellationToken();
try
{
var tmp = client.PostAsync(client.BaseAddress, name, token).Result;
var result = tmp.Content.ReadAsStringAsync();
}
catch (Exception err)
{
// error handling
}
Can anyone help translate this to NetTalk Client Post?
Thanks,
Ron
I am trying to write an API to send auto VIN number to NHTSA and get an XML or JSON return regarding the information about the auto.
This is the C# POST Code:
string text = "3GNDA13D76S000000;5XYKT3A12CG000000;";
string url = @"https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVINValuesBatch/";
var nameValues = new Dictionary<string, string>();
nameValues.Add("data", text);
nameValues.Add("format", "json");
HttpClient client = new HttpClient();
client.BaseAddress = new Uri(url);
// using FormUrlEncodedContent
var name = new FormUrlEncodedContent(nameValues);
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
System.Threading.CancellationToken token = new System.Threading.CancellationToken();
try
{
var tmp = client.PostAsync(client.BaseAddress, name, token).Result;
var result = tmp.Content.ReadAsStringAsync();
}
catch (Exception err)
{
// error handling
}
Can anyone help translate this to NetTalk Client Post?
Thanks,
Ron
3
Web Server - Ask For Help / Looking for Testers - new App
« Last post by rjolda on June 18, 2026, 05:23:39 AM »Hi All,
We have completed an app for shops and customers and this is the customer portion. It allows the customer to create a KK-eGloveBox which will store the information and photos of their drivers license, their auto registration, insurance and inspection. This information is available at the touch of a button and if they are stopped, they can show all the documents to the officer from ANY car which they are linked to. No more digging through the glove box for documents. Additionally, they can use it to create electronic service requests and take a photo of their keys that they drop off - thereby giving positive key ID to the shop with a printable signed work order. Additionally, the customers will get e mail reminders for renewing any document if they put in expiration dates.
RIght now there is only one shop in the database as we test it out and start rolling it out.
We have also developed a Kiwi-Kiosk which will dispense keys 24/7 and this is operated through the same mobile app. That is at https://kiwi-kiosks.com.
Right now we need to test the customer portion. The interface may change a little as we tweak it. So, give it a try and get back to me with any issues/feedback, etc.
You can find the customer portion at http://eppili.net. Use the Setup New Account on the top menu. You will need a valid e mail account and mobile phone number to set it up. Then you can enter cars that you own and enter data on these cars. Everything should be working and if it isn?t let me know so that we can fix it.
Ron
We have completed an app for shops and customers and this is the customer portion. It allows the customer to create a KK-eGloveBox which will store the information and photos of their drivers license, their auto registration, insurance and inspection. This information is available at the touch of a button and if they are stopped, they can show all the documents to the officer from ANY car which they are linked to. No more digging through the glove box for documents. Additionally, they can use it to create electronic service requests and take a photo of their keys that they drop off - thereby giving positive key ID to the shop with a printable signed work order. Additionally, the customers will get e mail reminders for renewing any document if they put in expiration dates.
RIght now there is only one shop in the database as we test it out and start rolling it out.
We have also developed a Kiwi-Kiosk which will dispense keys 24/7 and this is operated through the same mobile app. That is at https://kiwi-kiosks.com.
Right now we need to test the customer portion. The interface may change a little as we tweak it. So, give it a try and get back to me with any issues/feedback, etc.
You can find the customer portion at http://eppili.net. Use the Setup New Account on the top menu. You will need a valid e mail account and mobile phone number to set it up. Then you can enter cars that you own and enter data on these cars. Everything should be working and if it isn?t let me know so that we can fix it.
Ron
4
Web Server - Ask For Help / Re: GPF on Line=1774 Proc=SSL_OUR_SERVERSWITCHTOSSL
« Last post by ntnewbies on June 13, 2026, 01:29:13 AM »hi,
what about at multi host environment? do we set this Force/netall only at the host.exe or in all (host and dll)
jason
nt14.36
c11.1
what about at multi host environment? do we set this Force/netall only at the host.exe or in all (host and dll)
jason
nt14.36
c11.1
5
Web Server - Ask For Help / Re: GPF on Line=1774 Proc=SSL_OUR_SERVERSWITCHTOSSL
« Last post by JohanR on June 05, 2026, 10:36:33 PM »Hi,
Found it!
thanks
Johan
Found it!
thanks
Johan
6
Web Server - Ask For Help / Re: GPF on Line=1774 Proc=SSL_OUR_SERVERSWITCHTOSSL
« Last post by JohanR on June 05, 2026, 08:50:29 AM »Hi Jorge
From the General extension, "Log files" tab, activated Force /netall
Is it possible to gibe more info on exactly where this is?
Think I zigged instead of zagged, can't find this setting
thanks
Johan
From the General extension, "Log files" tab, activated Force /netall
Is it possible to gibe more info on exactly where this is?
Think I zigged instead of zagged, can't find this setting
thanks
Johan
7
Web Server - Ask For Help / Is there a way to GET binary files from a rest server, not using encoding?
« Last post by jlavera on May 23, 2026, 05:21:58 PM »Hi, all.
We have some API Rest servers where the speed had become critical, so if we can reduce the traffic it would be great. We used to upload/download (POST, GET) files using base64 encoding inside json packages. It works great, but it adds 30% to 40% of overhead.
We replaced all the POST with Multipart/form-data, the API rest server recognizes it perfectly, and we receive those files way faster than before.
However, I don't find the way to do the same for GET operations; for what I see, the methods force to use either json or xml (the "default return format" is mandatory and either json or xml).
Is there a way to transmit a Multipart/form-data response? Or any other way to transmit binaries, for example BSON or even CBOR?
Cheers,
Jorge Lavera
We have some API Rest servers where the speed had become critical, so if we can reduce the traffic it would be great. We used to upload/download (POST, GET) files using base64 encoding inside json packages. It works great, but it adds 30% to 40% of overhead.
We replaced all the POST with Multipart/form-data, the API rest server recognizes it perfectly, and we receive those files way faster than before.
However, I don't find the way to do the same for GET operations; for what I see, the methods force to use either json or xml (the "default return format" is mandatory and either json or xml).
Is there a way to transmit a Multipart/form-data response? Or any other way to transmit binaries, for example BSON or even CBOR?
Cheers,
Jorge Lavera
8
Web Server - Ask For Help / Re: GPF on Line=1774 Proc=SSL_OUR_SERVERSWITCHTOSSL
« Last post by jlavera on May 22, 2026, 02:07:28 AM »For others and future references, the debug in NT was disabled, and when I activated it, the GPFs just stopped.
From the General extension, "Log files" tab, activated Force /netall, and the error went away - no more GPFs.
Bruce told me the debug change forces a "full recompile", and that's why it was fixed. As per his request, I recompiled again without the debug.
Indeed after 8 hours the GPFs still didn't return, so there's a magic trick to fix this.
Kind regards,
Jorge Lavera
From the General extension, "Log files" tab, activated Force /netall, and the error went away - no more GPFs.
Bruce told me the debug change forces a "full recompile", and that's why it was fixed. As per his request, I recompiled again without the debug.
Indeed after 8 hours the GPFs still didn't return, so there's a magic trick to fix this.
Kind regards,
Jorge Lavera
9
Web Server - Ask For Help / Re: Restrictok issue
« Last post by wasatchconsulting on May 21, 2026, 11:38:49 AM »Well that workaround worked. Same as you, I cannot figure out why it is returning restricted as I cannot figure out what it was looking at. Maybe CanCall is what needs to be reviewed.
Thanks for the workaround.
Ken
Thanks for the workaround.
Ken
10
Web Server - Ask For Help / Re: GPF on Line=1774 Proc=SSL_OUR_SERVERSWITCHTOSSL
« Last post by jlavera on May 21, 2026, 06:41:46 AM »Hi, Bruce.
You didn't teamviewer that time, we finally did an upgrade of NT to the latest NT 12.x and the error went away.
While the GPF is exactly the same, the situation is different this time. In that time the error was in a single server running alone, this is no longer happening. And we are in the latest of everything.
Kind regards,
Jorge Lavera
You didn't teamviewer that time, we finally did an upgrade of NT to the latest NT 12.x and the error went away.
While the GPF is exactly the same, the situation is different this time. In that time the error was in a single server running alone, this is no longer happening. And we are in the latest of everything.
Kind regards,
Jorge Lavera
Recent Posts