我试图使用 tabcmd.exe 实用程序发布一个表格工作表,但出现错误。
*** 411 "Length Required"
tabcmd 日志文件具有以下条目。
[11888] DEBUG Nov-05 05:11:42,437: ====>> Starting Tabcmd 8.0 at Tue Nov 05 05:11:42 UTC 2013 <<====
[11888] DEBUG Nov-05 05:11:42,437: Build 8000.13.1001.1930
[11888] DEBUG Nov-05 05:11:45,195: run as: tabcmd publish "tabcmd_publish.twbx" -n "tabcmd_publish" -r "Default" --db-user "username" --db-password "password" -o --no-certcheck
[11888] INFO Nov-05 05:11:45,210: Continuing previous session
[11888] INFO Nov-05 05:11:45,242: Server: https://someurl.tableauserver.com
[11888] INFO Nov-05 05:11:45,242: Username: <username>
[11888] INFO Nov-05 05:11:45,260: Connecting to server...
[11888] DEBUG Nov-05 05:11:49,690: Authenticity token: v2x4ltoI1rlcNYP875pO6ciYhWH8P3Vs7W15PMdWrWo=
[11888] DEBUG Nov-05 05:11:49,113: upload options: {}
[11888] DEBUG Nov-05 05:11:50,661: /manual/file_uploads/create.xml
[11888] DEBUG Nov-05 05:11:50,680: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Length Required</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Length Required</h2>
<hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>
</BODY></HTML>
[11888] FATAL Nov-05 05:11:50,682: 411 "Length Required"
我认为这个问题的原因是发送到服务器的数据流应该包含 Content-Length 值。但我不确定我该如何设置?
对此的任何帮助都非常感谢