Hi Everyone,
The solution is simple and I am writing it down for everyone who will have the same problem in the future.
1. since it is using curl the best solution is to run the command and see watch the results. it will give a good idea about the problem.
2. make sure that you have 301 message and not 30X temporary messages for those who do redirect upon location or language.
3. in my case the problem was the ssl certificate was missing the intermediate.crt. so that new browser didn't had no problem with handing the certificate, curl is an "old" browser and had problem with verify the certificate. better using tools to verify the ssl certificate was installed correctly. each issuer has it's own site to test the certificate installation.
good luck to all the guys that will run intto that problem in the future. I hope my respond will help you get that stage.