Chilkat 文件上传因套接字错误而失败

问题描述

好的。我开发了一个脚本..将文件上传到服务器..

它在我的电脑和我的虚拟机上运行得非常好..

但是在我的客户端电脑上..它每次都只显示以下错误..一次上传没有通过:(

这里是错误

        <fullHttpRequest>
      <domain>domain.com</domain>
      <port>443</port>
      <ssl>True</ssl>
      <openhttpconnection>
        <info>opening connection directly to HTTP server.</info>
        <httpHostname>domain.com</httpHostname>
        <httpPort>443</httpPort>
        <tls>True</tls>
        <info>HTTPS secure channel established.</info>
      </openhttpconnection>
      <connectTime>Elapsed time: 1687 millisec</connectTime>
      <sendRequestHeader>
        <sendHeaderElapsedMs>0</sendHeaderElapsedMs>
      </sendRequestHeader>
      <sendRequestBody>
        <genMultipartFormData>
          <requestParam>
            <name>Data</name>
          </requestParam>
          <requestParam>
            <name>vidFile</name>
            <filename>C:\U3_2021-01-25-23-52-38_S0001.mp4</filename>
            <sendDataToOutput>
              <error>socket write aborted by application..</error>
              <error>Socket send aborted by application</error>
              <error>Failed to send TLS message.</error>
              <error>Failed to write bytes.</error>
              <error>Failed to write data to output.</error>
              <error>Failed to copy file data to output.</error>
            </sendDataToOutput>
          </requestParam>
        </genMultipartFormData>
        <sendBodyElapsedMs>56422</sendBodyElapsedMs>
        <error>Failed to send HTTP request body.</error>
      </sendRequestBody>
      <error>sendRequestBody Failed.</error>
      <numBytesReceivedWhileSending>0</numBytesReceivedWhileSending>
    </fullHttpRequest>

我无法理解错误,因此也无法理解解决方案..

所以,请在这里寻求帮助?

最好的问候

解决方法

“被应用程序中止”意味着您的应用程序有回调,并且您的应用程序的回调方法明确地中止操作。例如,如果这是 C++,则参见 https://chilkatsoft.com/refdoc/vcCkHttpRef.html#event0https://chilkatsoft.com/refdoc/vcCkHttpRef.html#event8 这同样适用于其他编程语言,例如 C#。见https://chilkatsoft.com/refdoc/csHttpRef.html#event8