URL printer - SambaPOS to crash when malformed response from http server

Hi everybody,

I am trying to use an URL Printer to send the {ORDER NUMBERS} to a small web server.
That web server uses CGI scripts that will then execute appropriate actions.

On the web server side, It works well: CGI script receives correctly the {ORDER NUMBERS} and executes.
Unfortunately SambaPOS crashes - SambaPOS has stopped working - with the following error:

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: Samba.Presentation.exe
Problem Signature 02: 5.5.8420.31423
Problem Signature 03: 63caa4ce
Problem Signature 04: System
Problem Signature 05: 4.7.3151.0
Problem Signature 06: 5b44403a
Problem Signature 07: 209e
Problem Signature 08: 76
Problem Signature 09: System.Net.WebException
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

However nothing appears in the log file
So I have no clue on where to start looking …

I have the same crash if I hardcode the url in the URL Printer:


The small web server does not use SSL/TLS.

Is it a problem of SSL/TLS?

Thanks for your help,


Context: I am redoing from scratch our SambaPOS installation, part of it, doing a kitchen display (on an Oracle/APEX framework) and I want to receive immediately a new order submission. When the CGI script receives the new order, it updates the kitchen display immediately which is great. This is only for kitchen orders, therefore using a “printer” is also great and easy.

It turns out that the same happens - SambaPOS crashes - even if the web server is stopped.

So the request is made, get no response and crashes?

I don’t think because the crash is so fast that I don’t think it could be due to a request timeout.

1 Like

I added this line in the windows hosts file mssql
And it’s now working.
To edit in “Administrator mode”

1 Like

The http server was badly configured. Here is what I got:

GET request sent by SambaPOS

GET /cgi/index.cgi?80 HTTP/1.1

Bad RESPONSE from http server:

HTTP/1.0 200 OK

In this case, SambaPOS crashes.

Correct RESPONSE from http server:
(One of the possible responses)

HTTP/1.1 200 OK
Content-type: application/json
Transfer-Encoding: chunked
Date: Mon, 27 Feb 2023 10:42:40 GMT
Server: lighttpd/1.4.35

{"message": ""}