[TECHNICAL SUPPORT] LPS-40758 License check over proxy using Apache HttpClient

Hey Amos,

I send you this PR to you as Ray is on vacation who gave guidance to @jozsefilles on how to resolve the issue but I saw you were working on the modified class also.

If have any concerns or you think I should forward this PR to someone else, please let me know.

Regards,
Vilmos