Re: [twsocket] Building OpenSSL

2018-02-19 Thread RTT
The info in that readme.txt needs to be enhanced. I've created a custom configuration file, at the "Configurations" folder, with the next content ## -*- mode: perl; -*- ## Personal configuration targets %targets = (     "VC-WIN32-rtt" => {     inherit_

Re: [twsocket] Body not send on https post

2017-08-14 Thread RTT
Surely is there something wrong but I can't figure were is. Try specifying the data content type AnsiString asPost; asPost = PostMemo->Text; SslHttpCli1->SendStream = new TStringStream(asPost); SslHttpCli1->SendStream->Seek(0,soFromBeginning); SslHttpCli1->ContentTypePost='application/json';

Re: [twsocket] Need some help on TSslHttpCli Post

2017-08-07 Thread RTT
On 07/08/2017 19:53, Xavier Mor-Mur wrote: Hi all I need send a request using http post to get some data from an https server. I know url and body to post, and additional data which identify session that should be included in the head (as instructions say). Problem is I can't identify the

Re: [twsocket] HttpCli CharSet

2017-08-04 Thread RTT
https://www.w3schools.com/html/html_charset.asp Hello, when receiving an html through a GET, the words that have accentuation, are all wrong, how to set the charset to get the html correctly? Ex: I'm getting this way: *Afegão* Hound - Portal do Dog - Para quem ama cachorros! The correct

Re: [twsocket] OpenSSL 1.1.0d and 1.0.2k support

2017-02-04 Thread RTT
inside TCustomSslWsocket.Do_FD_READ: I added if (not FSslEnable) or (FSocksState <> socksData) or (FHttpTunnelState <> htsData) then begin inherited Do_FD_READ(msg); Exit; end; before WSocket_Synchronized_WSAASyncSelect({$IFDEF

Re: [twsocket] OpenSSL and TLS 1.3

2017-01-24 Thread RTT
On 24/01/2017 08:47, Angus Robertson - Magenta Systems Ltd wrote: but it seems to be using the Nghttp2 library Which does not seem to be included in the repository, or indeed even mentioned, although I only looked briefly. This blog post links to the nghttp2 C header translation used in the

Re: [twsocket] OpenSSL and TLS 1.3

2017-01-23 Thread RTT
On 23/01/2017 08:53, Angus Robertson - Magenta Systems Ltd wrote: But it's blocking sockets, not async like ICS and the SSL is a little old. The component is indeed coded to wait for the request to complete, but it seems to be using the Nghttp2 library (https://nghttp2.org/) asynchronously.

Re: [twsocket] OT: Code signing certificates

2016-12-12 Thread RTT
Anyone know why major CAs will no longer sell code signing certificates for individuals? -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] ICS and OpenSSL security

2016-10-31 Thread RTT
On 31/10/2016 19:00, rich...@quicksilvercollectibles.com wrote: I cannot say I know for a fact these binaries came from the original source code or aren't otherwise tampered with. The original OpenSSL files you downloaded were signed. Then you don't sign. Then I do sign. You're sort of a broken

Re: [twsocket] SSL post extremely slow

2016-05-12 Thread RTT
Either way, if the problem is the async nature of ICS, shouldn't an alternate method be provided? Try with the TransmitFile function https://msdn.microsoft.com/en-us/library/windows/desktop/ms740565(v=vs.85).aspx You may create a descendant of the THttpCli, override the SocketDataSent

Re: [twsocket] SSL post extremely slow

2016-04-27 Thread RTT
On 27/04/2016 18:12, Angus Robertson - Magenta Systems Ltd wrote: WinInet is a special case and probably handles TCP/IP as a driver or something we can not do. Maybe similar performance can be achieved with the Winsock TransmitFile and TransmitPackets functions. -- To unsubscribe or change

Re: [twsocket] SSL post extremely slow

2016-04-27 Thread RTT
On 27/04/2016 18:12, Angus Robertson - Magenta Systems Ltd wrote: Does not really make sense to me, but could be down to improved async winsock with Windows 10. Maybe related? https://blogs.windows.com/buildingapps/2015/07/02/networking-api-improvements-in-windows-10/ -- To unsubscribe or

Re: [twsocket] SSL post extremely slow

2016-04-25 Thread RTT
On 25/04/2016 18:12, Angus Robertson - Magenta Systems Ltd wrote: Done some testing with a view to investigating this issue, but not currently sure it's worth any more time. How about testing against a non-ICS server. https://posttestserver.com/ https://httpbin.org/ http://putsreq.com/ -- To

Re: [twsocket] Pinging multipe hosts

2016-03-14 Thread RTT
On 14/03/2016 13:11, Ertan Küçükoğlu wrote: MagIpLog1.StartLogging; if Label2.Caption = 'OK' then begin Label3.Caption := 'Connection OK!'; MagIpLog1.StopLogging; What async means is that the MagIpLog1.StartLogging returns immediately, not after the connection has been

Re: [twsocket] THttpCli and XML...

2016-03-06 Thread RTT
It would be interesting to know what header(s) in particular is/are causing the problem. You may use the OnBeforeHeaderSend event to remove any of the headers, before the headers are sent. Or just temporary comment the code related to each of the header lines being sent, under the

Re: [twsocket] Problem changing LineEnd before full buffer reading

2016-01-04 Thread RTT
I am in front of a strange behavior and would like to know if it is because of a misuse or a bug (using ICS V8 WSocket) Probably a bug in the unit OverbyteIcsWSocket? function TCustomLineWSocket.TriggerDataAvailable(ErrCode : Word) : Boolean; ... else begin

Re: [twsocket] TSslHttpCli error

2015-11-22 Thread RTT
On 22/11/2015 15:28, {Dark_Ducke} wrote: Does not work for 64 bit? It works with 64-bit too. After adding the USE_SSL conditional define, make sure you "Build" your project. Compile is not enough. -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] TSslHttpCli error

2015-11-21 Thread RTT
Add USE_SSL to the project options "conditional defines" field. Make also sure the ICS source folder is referred in the project options search path. Hello, I am trying to use the "TSslHttpCli" as an alternative to TIdhttp of indy, but when I add a component in the form, does not compile, the

Re: [twsocket] OverbyteIcsHttpProt can't do well with 302

2015-04-11 Thread RTT
If you post a https url (and it return 302 statecode), You can find there FStatusCode = 0. So FRequestType will not set httpGET; At the procedure THttpCli.StartRelocation, unit OverbyteIcsHttpProt, add: procedure THttpCli.StartRelocation; var SaveLoc : String; + SaveStatusCode:Integer;

Re: [twsocket] THTTPCli and 307 or 308 redirects with non GET methods

2014-05-27 Thread RTT
But I'll put it on my list for next month. OK Angus. Thanks. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] THTTPCli and 307 or 308 redirects with non GET methods

2014-05-26 Thread RTT
This subject doesn't deserve not even a reply?! If the problem is where to try it, here is an online service to test HTTP redirects http://jigsaw.w3.org/HTTP/300/ Just put the next URL in the OverbyteIcsHttpTst application, and issue a POST request (without any data).

[twsocket] THTTPCli and 307 or 308 redirects with non GET methods

2014-05-01 Thread RTT
Hi everyone, The 307 and 308 redirects must maintain the same request method, and not revert to GET as with other redirects. This can be handled by changing, in the unit OverbyteIcsHttpProt methods LocationSessionClosed and StartRelocation, the line: if FRequestType = httpPOST then

Re: [twsocket] HTTP PATCH method for the HttpCli

2014-04-18 Thread RTT
On 18-04-2014 09:20, Angus Robertson - Magenta Systems Ltd wrote: Any technical reason for discarding this functionality I submitted some time ago? How do we test it? There is no sample to run. Nothing to test against. I don't have time to read the Google Drive API, It's exactly the same

Re: [twsocket] HTTP PATCH method for the HttpCli

2014-04-17 Thread RTT
Any technical reason for discarding this functionality I submitted some time ago? I'm using it with the Google Drive API, add seems to be working fine. https://developers.google.com/drive/v2/reference/files/patch Hi, Bellow I'm sending a OverbyteIcsHttpProt.pas diff file to implement the