Questions tagged [ararat-synapse]
45 questions
0
votes
0 answers
POST/get JSON using Ararat Synapse with special PEM key (Lazarus/FPC)
We are forced to send (and receive back) JSON data to the government from our restaurant program
using a special RSA Key (PEM stream) they provide
using TLS 1.3 (OpenSSL 3.0+) < This works! :-)
The only way I found is to create a separate DLL for…

SzakiLaci
- 347
- 1
- 16
0
votes
0 answers
Synapse TTCPBlockSocket on network load balancing and proxy protocol enabled
We have an application server, a TCP protocol type and stream socket type, that is behind an NGINX load balancer but planned to be migrated to AWS with either NLB or ALB. Based on the info I got from the answers of the related questions here in…

pcpestolante
- 13
- 5
0
votes
0 answers
Synapse can't download file
I'm making a DLL (for GameMaker 8) with Lazarus. I have a function:
function Download(URL: PChar; FileName: PChar):double; cdecl;
var
HTTPClient : THTTPSend;
begin
HTTPClient := THTTPSend.Create;
try
if(Ping(URL, 4000) <> 4000) then
…

GreatCorn
- 81
- 12
0
votes
2 answers
HttpGetText(), autodetect charset, and convert source to UTF8
I'm using HttpGetText with Synapse for Delphi 7 Professional to get the source of a web page - but feel free to recommend any component and code.
The goal is to save some time by 'unifying' non-ASCII characters to a single charset, so I can process…

Henrik Erlandsson
- 3,797
- 5
- 43
- 63
0
votes
3 answers
WSAETIMEDOUT message in Synapse Library
Why I always get WSAETIMEDOUT error in this code :
var fUDPBuf: array [1..UdpPacketSize] of byte;
{...}
UDPSocket := TUDPBlockSocket.Create;
UDPSocket.Bind(UDPIP, UDPPort);
if UDPSocket.LastError = 0 then
Raise EDevFail.Create(Format(SPortFailed,…

SimaWB
- 9,246
- 2
- 41
- 46
0
votes
2 answers
not delete the message from email server using synapse in delphi
I am retrieving emails using synapse in delphi, but the messages are being deleted from the server. How can I retrieve the message without deleting it? Maybe the header only?
Thanks,
Joe

Jonathan
- 4,724
- 7
- 45
- 65
0
votes
2 answers
FTP Connect to servers that use either Implict SSL or SSH using Freepascal & Synapse
I have asked this question at the FPC forums (here) but answers are not forthcoming so I hoped someone here could help.
I have an Apple Mac server that has FTP enabled via SSH connection using port 22. I can connect to it fine using the FireFTP…

Gizmo_the_Great
- 979
- 13
- 28
0
votes
1 answer
How can I use the Synapse library with Delphi XE3 and up?
Has anyone got a version of the Synapse components and dproj package for delphi XE3+ ?
I'd like to have a go at using their component set but I can only find a Lazarus version.

mikelittlewood
- 223
- 4
- 15
0
votes
1 answer
How to upload a file to the server using Synapse
I'm trying to upload the file using the library THTTPSendEx.
My code:
procedure TForm1.Button1Click(Sender: TObject);
var
HTTP:THTTPSendEx;
Data:TMultipartFormDataStream;
sHTML:string; //Recived HTML code from web
begin
if OpenDialog1.Execute…

Muhammad
- 43
- 1
- 6
0
votes
1 answer
Sync TCP Client in multi-client application without lags
I have application, whitch connents to N devices trought the network.
The problem is:
TCP Client class isn't async, I'm send the command to device, I want get answer now.
So, 2 or more active clients makes my app frozen.
Any ideas how to do some,…

AlexLL
- 165
- 1
- 13
0
votes
1 answer
Synapse HTTPServ Delphi 7 Issue
I'm trying to do the following with the readily available Synapse HTTPServ example in Delphi 7.
1) Generate a simple HTML page with upload form field
2) When the user fills in the field and clicks the button, the name of the
file is sent back…

camenoj
- 11
- 2
0
votes
1 answer
How to send a json string with http post with synapse lib?
Im using the synapse lib and i want to send a String to a PHP Api via http post.
This is my final json string which i want to send via http post to the API.
{"os":"Windows7", "architecture":"64", "date":"20.06.2013", "version": "3.22",…

Hidden
- 3,598
- 4
- 34
- 57
0
votes
1 answer
synapse httpsend through proxy server
I have a routine that currently uses
httpgettext to send two urls out to google..
The first with the maps key
and the second to get some distance calculations with is returned as a JSON object...
It all worked fine but now the client wants it to go…

Phil Hutchinson
- 106
- 2
- 10
0
votes
1 answer
Synapse TBlockSocket occasionally freezes
I've createdan application which communicates with external device using TCP/IP as a client. I'm using Synapse library (v40) for communication. Sometimes however communication freezes. I managed to get callstack with JclDebug,showing that despite…

Harriv
- 6,029
- 6
- 44
- 76
0
votes
1 answer
Synapse SMTP authentication - keep getting error 530
just follow the simple example on the Synapse HowTo
But on the smtp.MailTo(sTo) Or smtp.MailFrom(sFrom) I get an 530 Error
Where can I set the Outgoing authentication ?
Update: ------
I am using GMail to this test, both for To and FROM accounts.

Jlouro
- 4,515
- 9
- 60
- 91