following issue: using power shell script below works transferring .war file server server b via tomcat manager when size of war file below 4mb. above size fails with invoke-webrequest : underlying connection closed: unexpected error occurred on send. @ c:\temp\deploy.ps1:25 char:2 + (invoke-webrequest -infile "c:\temp\fancy.war" -uri "https: ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : invalidoperation: (system.net.httpwebrequest:httpwebrequest) [invoke-webrequest], webexception + fullyqualifiederrorid : webcmdletwebresponseexception,microsoft.powershell.commands.invokewebrequestcommand code run via powershell on server is: set-psdebug -trace 1 $allprotocols = [system.net.securityprotocoltype]'ssl3,tls,tls11,tls12' [system.net.servicepointmanager]::securityprotocol = $allprotocols add-type @" using system.net; using system.security.cryptography.x509certific...
Comments
Post a Comment