EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SSL blackbox/HTTP upload example error -1

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#15747
Posted: 02/14/2011 11:06:25
by stephane  (Basic support level)
Joined: 03/17/2009
Posts: 39

Hello,

I've downloaded the last version of D4-D7 secureblackbox package démo, installed it and compiled the "samples\delphi\httpblackbox\fileupload" sample.

When I try to connect to any URL I always get an error (-1) on the HTTPCLient.Post() line.

Is this another demo licence no more valid issue in the source code ?

Thanks
#15748
Posted: 02/14/2011 11:19:59
by Eugene Mayevski (EldoS Corp.)

There should be some error code or exception message other than -1. Don't you have anything?

Also, have you placed the provided PHP script to your site and are you referencing it right in your URL?


Sincerely yours
Eugene Mayevski
#15749
Posted: 02/14/2011 11:32:41
by stephane  (Basic support level)
Joined: 03/17/2009
Posts: 39

no exception other than the error -1 code.

I've not used the php script so far , I have modified the code to add a hardcoded HTTPClient.Post('https://myurl','myparams')
(no upload, just a simple POST)

but whatever url I type (http or https) i always an the -1 error on this line.
#15750
Posted: 02/14/2011 11:37:26
by stephane  (Basic support level)
Joined: 03/17/2009
Posts: 39

The -1 exception is "connection error", EElSimpleSSLClientError
#15751
Posted: 02/14/2011 11:41:53
by Eugene Mayevski (EldoS Corp.)

I am afraid we won't go anywhere with such sparse information. I'll move your question to the helpdesk and we need additional information from you.


Sincerely yours
Eugene Mayevski
#15754
Posted: 02/14/2011 12:43:44
by stephane  (Basic support level)
Joined: 03/17/2009
Posts: 39

Sparse information ? Wow I gave you the exact example I used which contains only ONE delphi unit (MainUnit.pas) , in this file there is only one HTTPClient.Post() call at line 62.

With original line of code it always fails with the -1 error, with my hardcoded HTTPClient.Post('url','params') it fails also with same error.

Of course I used only URLs that work under firefox or IE in the same computer.

I have no active firewall/proxy or whatever.

I am testing the demo version : http://www.eldos.com/files/sbb_current/secbboxvcl_d4to7.zip
#15756
Posted: 02/14/2011 13:09:23
by Eugene Mayevski (EldoS Corp.)

Let's continue in HelpDesk please.


Sincerely yours
Eugene Mayevski
#15757
Posted: 02/15/2011 06:58:01
by Eugene Mayevski (EldoS Corp.)

For general information: for some reason the component in the sample project is set to use a localhost proxy (HTTPClient.UseProxy property is set to true). Changing the value of the property to false eliminates the problem. SecureBlackbox 8.2 release will include the fixed sample.
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

Topic viewed 1457 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!