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.


Topics - Flint G

Pages: [1]
1
I have run into a small issue with the LE client in NetTalk.  Presently using NT 12.26.  What does this message mean?

[11/08/21-13:48:26]  The URL for the Fetch command was blank
[11/08/21-13:48:26]  Get Authorize <redacted>
[11/08/21-13:48:25]  Authorize Request <redacted>
[11/08/21-13:48:24]  Registering Account <redacted> at  https://acme-v02.api.letsencrypt.org/acme/new-acct
[11/08/21-13:48:23]  Time to update the certificate <redacted>
[11/08/21-13:48:23]  Dates: <redacted> From: 9 JUN 2021 To: 7 SEP 2021
[11/08/21-13:48:22]  Setting Folders for Domain [<redacted>]
[11/08/21-13:48:22]  Created C:\Clarion\AccuFund\bin\certificates\<redacted>.csr.der
[11/08/21-13:48:22]  Setting Folders for Domain [<redacted>]

2
Web Server - Ask For Help / Ephemeral ports with NetTalk?
« on: August 29, 2017, 02:01:55 PM »
Is it possible to pop up a simple NetTalk web server on-the-fly, to handle a simple GET against localhost from a Windows app?  The trick is that it needs an ephemeral port, because we could theoretically have many such popup servers running at any given moment, so I want the system to issue the port number to me.

3
I've been practicing with nikto against a NetTalk web server, trying to expand on recent training.  The tool reports a number of informational items, one of which is this:

Code: [Select]
OSVDB-28260: POST /_vti_bin/shtml.exe/_vti_rpc?method=server+version%3a4%2e0%2e2%2e2611: Gives info about server settings.
If I replay the request through a proxy (I used Burpsuite Pro), the request looks like this:

Code: [Select]
GET /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1
Connection: close
User-Agent: Mozilla/5.00 (Nikto/2.1.6) (Evasions:None) (Test:002763)
Host: [redacted: IP]

The response looks like this:
Code: [Select]
HTTP/1.1 200 OK
Date: Fri, 23 Jun 2017 04:28:33 GMT
Server: NetTalk-WebServer/8.31
Expires: Thu, 23 Jun 2016 04:28:33 GMT
Content-Length: 41
Content-Type: application/json
Cache-Control: no-store, no-cache, must-revalidate, private,post-check=0, pre-check=0, max-age=0
Pragma: no-cache
Set-Cookie: SESSIONID=[redacted]; path=/; HttpOnly
Connection: close
X-Frame-Options: sameorigin
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff

[redacted: return data]

A similar request does the same thing:
Code: [Select]
POST /_vti_bin/shtml.dll/_vti_rpc HTTP/1.1
Connection: close
Content-Length: 57
User-Agent: Mozilla/5.00 (Nikto/2.1.6) (Evasions:None) (Test:003486)
Content-Type: application/x-www-form-urlencoded
Host: [redacted: IP]

method=open+service%3a3%2e0%2e2%2e1105&service%5fname=%2f

Response:
Code: [Select]
HTTP/1.1 200 OK
Date: Fri, 23 Jun 2017 03:24:47 GMT
Server: NetTalk-WebServer/8.31
Expires: Thu, 23 Jun 2016 03:24:47 GMT
Content-Length: 41
Content-Type: application/json
Cache-Control: no-store, no-cache, must-revalidate, private,post-check=0, pre-check=0, max-age=0
Pragma: no-cache
Set-Cookie: SESSIONID=[redacted]; path=/; HttpOnly
Connection: close
X-Frame-Options: sameorigin
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff

[redacted: return data]

The resources /_vti_bin/shtml.dll/_vti_rpc and /_vti_bin/shtml.exe/_vti_rpc certainly do not exist, and I would have expected a 404 response.


4
Easy question, that hopefully has a simple answer: in a NetWebServer procedure, is it possible to drop/close a connection without sending a response?

For instance, if the incoming session ID contains characters other than A-Za-z0-9, can I simply ignore the request because this is most certainly malicious?  If I receive enough of these kinds of requests, I would like to add the IP to a blacklist and never respond again.

5
Web Server - Ask For Help / Head-banger problem
« on: January 10, 2013, 05:21:26 PM »
I've got a perplexing issue that I'd like to track down:

An extremely simple NetTalk server runs on server A.  Custom application with NetTalk client runs on remote server B, and should talk to server A ... but doesn't.

Using a browser (Firefox, IE. etc) from server B, I can talk to NT server on server A.  But from my application on server B, I cannot get a response out of the NT server on server A.  It just times out (-53, Open timeout or failure error).

Curiously, I can use the very same application on my local workstation and talk to the NT server on server A just fine (browser works, too).

Where can I stick a trace message in my NT server to catch the absolute beginning of the request to see if my NT server is even getting a hit??  The log window shows nothing, of course; so the failure is earlier than that.  Using an older version of this same NT server it all works dandy, so I am certain the application is not at fault (but we need not waste any time with the old NT server).

Regards,
Flint

6
The Rest - Ask For Help / Trapping NetWebClient timeouts
« on: May 10, 2011, 11:19:12 AM »
Hello NetTalkies,

There are two timeouts that I can see in a NetWebClient object: AsyncOpenTimeOut, and InActiveTimeOut.

Question1: When is each timeout used?  It would make sense to me that AsyncOpenTimeOut would be the timeout on opening a socket connection, and InActiveTimeOut would close an idle connection. 

Question 2: How/where do I trap each timeout to produce an appropriate error or dump out of the procedure?

Thanks!

Regards,
Flint

7
The Rest - Ask For Help / CA_Roots.pem questions
« on: March 14, 2011, 09:41:14 AM »
Hello,

How is the CA_Roots.pem file generated, and can I generate my own?  

For instance, I would like to include my own CA root certificate in the CA_Roots.pem file we ship so our software will recognize our own CA.  Can I use OpenSSL to generate the CA_Roots.pem file NetTalk uses?

Regards,
Flint

8
Web Server - Ask For Help / Accepting larger than 4096 character posts
« on: January 06, 2011, 12:59:22 PM »
Hello Bruce, et. al.

I have an ABC web server built on 7.2.7600 w/ NetTalk 5.05 ( I know, why haven't I upgraded yet? ... I just haven't) that accepts an XML post through a NetWebPage.

I have a Clarion web client built on 6.3.9053 w/ NetTalk 4.49 (I know, why haven't I upgraded yet? ... I just haven't) that posts an XML string to the aforementioned server.

I have complete control over both ends of the communication (fantastic!  I know ...), so when I attempt to post an XML string that exceeds the 4096 maximum (say, 75,000 characters, standard text -- not base 64 encoded), the post shows up clipped to 4096 characters at the Web Server.

Two questions:
1. Which piece is doing the clipping; the Web Client or the Web Server?
2. How do I post a string that exceeds the 4096 character maximum?  Or rather, what's the simplest way to get around the maximum post length?

Best regards,
Flint

9
Web Server - Ask For Help / Error: Unable to Close Connection
« on: May 27, 2010, 12:15:18 PM »
Hello everyone,

So long as I am not suppressing errors in my server application, I randomly receive errors like the following:

Quote
NetTalk Object Error
A network communication error has occurred.
Error = Unable to Close connection.
The error number was -34 which means Could not find connected client in Simple Connect Client or Server.
Error occurred in function NetSimple.CloseServerConnection

Does anyone know why it pops up?  This is on the server itself, without suppressing errors on the NetTalk objects.

Thanks,
Flint

[attachment deleted by admin]

10
Web Server - Ask For Help / Detecting when a session is deleted
« on: February 23, 2010, 01:38:47 PM »
Hello, NTC!

I want to detect when a session becomes invalid on the server side, so I can remove rows from an in-memory table related to that specific session.

Can I just call my code from the _DeleteSession(p_SessionID) method of the NetWebServer?

When does a session get deleted?  Is it after a period of time, or after a logout, or only when the server is shut down?

Thanks for the help!

Regards,
Flint

11
Web Server - Ask For Help / Dynamically create entire forms
« on: December 21, 2009, 02:15:58 PM »
Hello NTC,

Disclaimer: I'm an admitted novice when it comes to NetTalk, but I know enough to get myself into trouble.  That said:

I want to create an entire form dynamically out of a table with an undefined number of rows, where each row will create a single entry field.  I will use values in the different columns to determine the "ID" and "Name" of the entry fields.  I'll basically be creating one "field" on the tab from the same column for each row (versus the typical form style of creating one field for each column in the same row).

My question is: What is the best way to do it?  I could try to dupe the NT code using OMITs and manually add code, etc.,  :-\ , I could dynamically create the HTML page and store it in the web directory then serve that temporary page, or is there a better way?  It sure would be nice if I had some way of doing it through the NT paradigm!

Aside: Can NetTalk serve and handle PHP?

Thanks a TON!

Regards,
Flint

12
Web Server - Ask For Help / Web Client appends CR/LF to POST messages
« on: October 20, 2008, 02:30:56 PM »
Hello,

I am using the NetTalk Web Client (4.29) to post a string request for credit card processing. 

When I post the request, I am certain there are no stray CR/LF characters attached to the end of my string, but when the processor receives the request, there are always two sets of CR/LF characters appended to the last field value in the string.  I verified this by switching the order in which the fields were listed, and sure enough the CR/LF characters would always attach to the last field value in the string.  When sending the same information via a standard web form HTML file, the characters did not exist.

How can I find out if NetTalk is adding these CR/LF characters, or if I should look elsewhere?

Regards,
Flint

Pages: [1]