The code works excellent.But I have a problem. Sometimes it waits 3-4 minutes before sending HTTP request and after a long time wait it continue working succesfully. So the only problem is why it sometimes waits 3 or 4 minutes before sending http reqeust succesfully.
I debug my code and I guess I found where it waits. Here is the SSL debug results.