EldoS | Feel safer!

Software components for data protection, secure storage and transfer

https over proxy

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.
#26221
Posted: 08/27/2013 04:47:58
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

I am trying to connect my application to a webservice throught a proxy but it is not working. Without proxy everything works perfectly.

The error code is 503 and the entire answer from server and/or proxy is attached.

What can I do to solve this ?


[ Download ]
#26222
Posted: 08/27/2013 04:53:13
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

This is a limitation of the proxy. You should contact its administrator to solve the problem.
#26223
Posted: 08/27/2013 04:59:58
by Vsevolod Ievgiienko (EldoS Corp.)

Also if you adjust the proxy using TElHTTPSClient.HTTPProxy* properties then try to use TElHTTPSClient.WebTunnel* properties instead and check if this works.
#26224
Posted: 08/27/2013 05:12:47
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

Ok

I will try with these properties and let you know about the results.

If I understand correctly now I am using:

FHttpsClient.UseHttpProxy := True;
FHttpsClient.HttpProxyHost := ProxyHost;
FHttpsClient.HttpProxyPort := StrToIntDef(ProxyPort,0);
FHttpsClient.HttpProxyUsername := ProxyUserName;
FHttpsClient.HttpProxyPassword := ProxyPassword;

Are you saying to use this instead ?

FHttpsClient.UseWebtunneling := True;
FHttpsClient.WebTunnelAddress := ProxyHost;
FHttpsClient.WebTunnelPort := StrToIntDef(ProxyPort,0);
if ProxyUserName <> '' then begin
FHttpsClient.WebTunnelAuthentication := True;
FHttpsClient.WebTunnelUserId := ProxyUserName;
FHttpsClient.WebTunnelPassword := ProxyPassword;
end;
#26225
Posted: 08/27/2013 05:16:04
by Eugene Mayevski (EldoS Corp.)

Yes, HTTP proxy must not be used for HTTPS urls unless you know for sure what you are doing.

Also, what exactly version of SecureBlackbox are you using? Please try version 11 pre-release - it has autodetection of your situation and uses web tunneling automatically. Actually this autodetection was present before as well, but it was broken in a couple of builds.


Sincerely yours
Eugene Mayevski
#26226
Posted: 08/27/2013 05:22:39
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

I am using last stable release 10.

OK. I got the idea

I have other installations using HttpProxy but without SSL and they are working well. What do you suggest ? Left it using HttpProxy or change them to use tunneling like https ?

I will upgrade soon to version 11.
#26227
Posted: 08/27/2013 05:24:57
by Eugene Mayevski (EldoS Corp.)

Use WebTunneling for HTTPS resources and HttpProxy for HTTP resources. I will write a larger article regarding these two proxy types later today.


Sincerely yours
Eugene Mayevski
#26228
Posted: 08/27/2013 05:42:05
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

Ok

Thank you VERY much for all information.
#26229
Posted: 08/27/2013 06:55:53
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

I have replaced the code as you point and everthing works perfectly.

Thanks again
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

Topic viewed 671 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!