Hello there, The problem is, what I want to develop an application (probably PHP?), capable of making quick connection to a SSL secured server and send/get data from it. My aim is to make it send the query and read the result as quick as possible. I am trying various solutions and benchmarking them all. I have tried fsockopen() and CURL, however, wondering if there are any solutions how I could improve them?
Results are as follows: fsockopen():
- Headers sent: 0.26755499839783;
- Page received: 0.48934602737427;
CURL results:
- [total_time] => 0.484
- [pretransfer_time] => 0.281
- [starttransfer_time] => 0.437
Questions are: 1) When the query is started to execute on the server, to which I connect - after headers are sent or after I get the page and connections closes? 2) Which is the exect time of CURL to which I should compare the fsockopen() result? Is starttransfer_time even before the headers are sent to server? This would mean that fsockopen() is faster, isn't it? 3) Any solutions how to tweak SSL connectivity on the server, on which the code is executed? Any tweaks possible to OpenSSL module of PHP (any possible downgrades of crypto?) to make it faster? 4) Any solution to go without SSL to SSL secured server? 5) Would C++ or other solution be any quicker in this case?
Any ideas are welcome :) I got obsessed by this "ms" race :)
Thanks, Jonas