[twsocket] DnsResult hook for http and https connection

2018-09-02 Thread spanfkyous
Hi, In some situation, i want to manually change the DnsResult before the http and https connection. To make this work, i added 'write FDnsResult;' in OverbyteIcsHttpProt.pas after the line 'property DnsResult : String read FDnsResult;' Is there a better way to hook the DnsResult for THttpCli

[twsocket] HttpCli Request in Sync mode

2018-09-07 Thread spanfkyous
Hi, In thread mode, the DoRequestSync of httpcli and sslhttpcli will spend more than 1000ms to wait for the http state chage, i think the reason is the MsgWaitForMultipleObjects dont get QS_ALLINPUT event in thread mode, I changed the code as below, MsgWaitForMultipleObjects will be triggered ev