Recent

Author Topic: [SOLVED]Anyone using synapse httpsend on Linux 64bit and working?  (Read 6090 times)

snorkel

  • Hero Member
  • *****
  • Posts: 817
I have a app  I wrote on win32 that uploads a file using httpsend from they synapse library using HTTPS, this works perfect on win32.
When I compile it on linux 64bit it simply does not upload the file, no error, it just returns a empty result from the server.

I don't know if it works ok on Linux 32 bit, but I imagine it does.

When I was looking at the compiler directives using Laz 1.2 which shows which ones are active, The OS2 ones are showing active, so I am thinking this is a issue with Synapse not knowing it's 64bit or something.
« Last Edit: March 06, 2014, 06:06:01 pm by snorkel »
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

eric

  • Sr. Member
  • ****
  • Posts: 267
Re: Anyone using synapse httpsend on Linux 64bit and working?
« Reply #1 on: March 05, 2014, 11:56:00 pm »
I'm using HTTPSend on Linux 64bit, but only to download files, not upload. There are no apparent issues.

snorkel

  • Hero Member
  • *****
  • Posts: 817
Re: Anyone using synapse httpsend on Linux 64bit and working?
« Reply #2 on: March 06, 2014, 02:05:41 am »
with HTTPS ?   I think it might be related to openSSL.
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

eric

  • Sr. Member
  • ****
  • Posts: 267
Re: Anyone using synapse httpsend on Linux 64bit and working?
« Reply #3 on: March 06, 2014, 08:30:43 am »
No, just plain HTTP. I'm using this method: http://wiki.freepascal.org/Synapse#Advanced_version

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Anyone using synapse httpsend on Linux 64bit and working?
« Reply #4 on: March 06, 2014, 05:06:37 pm »
Why don't you test on a local server that you create yourself?

snorkel

  • Hero Member
  • *****
  • Posts: 817
Re: Anyone using synapse httpsend on Linux 64bit and working?
« Reply #5 on: March 06, 2014, 06:05:43 pm »
Got it working.
I thought I had all the SSL stuff installed, but apparently synapse needs libssl.so

So I had to do:

sudo apt-get install libssl1.0.0 libssl-dev

Works now.
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

 

TinyPortal © 2005-2018