That error is likely due to the fact that the InternetExplorer com objects aren't loaded in wine? 
I believe this line is the actual culprit: $oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1") in this func:
That error is likely due to the fact that the InternetExplorer com objects aren't loaded in wine? 
I believe this line is the actual culprit: $oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1") in this func: