I downloaded trial of SecureBridge from your page and tried to make HTTP client over SSH. I checked samples, rewrite what was needed, added TScIdIOHandler...
Everything is working fine besides TIdHTTP.Post request - my application can`t send Posts to every site I want. For example, when i try to send it to the "cmyip.com" it`s working fine, but with "wp.pl" or "nfohump.com" when i call TIdHTTP.Post function, application freezes and (very often) CPU usage is about 80-100%. I also tried to change SSH server which application is connecting but witout result.
I`m using BDS2006, SecureBridge 2.00 for BDS 2006, Indy 10.1.5.
Thanks for any help.
Code I use to send Post request:
Code: Select all
StreamIn := TStringStream.Create('');
StreamOut := TStringStream.Create('');
try
StreamIn.WriteString(Format('test=%s&test2=%s', ['test', 'test2']));
ht.Post('http://nfohump.com', StreamIn, StreamOut);
zwr := StreamOut.DataString;
except
StreamIn.Free;
StreamOut.Free;
end;
Sample application:
- http://rapidshare.com/files/138038473/S ... e.rar.html
- http://www.uploading.com/files/IS0JQB63 ... e.rar.html
I would be thankful if anybody can check, this is working for him or what i should change in the code to make this working for me.
There is a source in the rar file, you will only need SB 2.0 and Indy 10.
*** EDIT2 ***
Is there anybody from Devart Team who can check this? :>