TC官方合作论坛
标题:
POST请求求帮助
[打印本页]
作者:
夜不舞
时间:
2015-9-14 14:47
标题:
POST请求求帮助
原文例子:
<span class="tag" style="color: rgb(0, 0, 128); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);"><<span class="title">form</span> <span class="attribute" style="color: rgb(255, 120, 0);">method</span>=<span class="value" style="color: rgb(64, 155, 28);">"post"</span> <span class="attribute" style="color: rgb(255, 120, 0);">action</span>=<span class="value" style="color: rgb(64, 155, 28);">"http://upload.qiniu.com/"</span>
<span class="attribute" style="color: rgb(255, 120, 0);">enctype</span>=<span class="value" style="color: rgb(64, 155, 28);">"multipart/form-data"</span>></span><span style="color: rgb(64, 64, 64); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);">
</span><span class="tag" style="color: rgb(0, 0, 128); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);"><<span class="title">input</span> <span class="attribute" style="color: rgb(255, 120, 0);">name</span>=<span class="value" style="color: rgb(64, 155, 28);">"key"</span> <span class="attribute" style="color: rgb(255, 120, 0);">type</span>=<span class="value" style="color: rgb(64, 155, 28);">"hidden"</span> <span class="attribute" style="color: rgb(255, 120, 0);">value</span>=<span class="value" style="color: rgb(64, 155, 28);">"<resource_key>"</span>></span><span style="color: rgb(64, 64, 64); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);">
</span><span class="tag" style="color: rgb(0, 0, 128); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);"><<span class="title">input</span> <span class="attribute" style="color: rgb(255, 120, 0);">name</span>=<span class="value" style="color: rgb(64, 155, 28);">"x:<custom_name>"</span> <span class="attribute" style="color: rgb(255, 120, 0);">type</span>=<span class="value" style="color: rgb(64, 155, 28);">"hidden"</span> <span class="attribute" style="color: rgb(255, 120, 0);">value</span>=<span class="value" style="color: rgb(64, 155, 28);">"<custom_value>"</span>></span><span style="color: rgb(64, 64, 64); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);">
</span><span class="tag" style="color: rgb(0, 0, 128); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);"><<span class="title">input</span> <span class="attribute" style="color: rgb(255, 120, 0);">name</span>=<span class="value" style="color: rgb(64, 155, 28);">"token"</span> <span class="attribute" style="color: rgb(255, 120, 0);">type</span>=<span class="value" style="color: rgb(64, 155, 28);">"hidden"</span> <span class="attribute" style="color: rgb(255, 120, 0);">value</span>=<span class="value" style="color: rgb(64, 155, 28);">"<upload_token>"</span>></span><span style="color: rgb(64, 64, 64); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);">
</span><span class="tag" style="color: rgb(0, 0, 128); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);"><<span class="title">input</span> <span class="attribute" style="color: rgb(255, 120, 0);">name</span>=<span class="value" style="color: rgb(64, 155, 28);">"file"</span> <span class="attribute" style="color: rgb(255, 120, 0);">type</span>=<span class="value" style="color: rgb(64, 155, 28);">"file"</span> /></span><span style="color: rgb(64, 64, 64); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);">
</span><span class="tag" style="color: rgb(0, 0, 128); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);"><<span class="title">input</span> <span class="attribute" style="color: rgb(255, 120, 0);">name</span>=<span class="value" style="color: rgb(64, 155, 28);">"crc32"</span> <span class="attribute" style="color: rgb(255, 120, 0);">type</span>=<span class="value" style="color: rgb(64, 155, 28);">"hidden"</span> /></span><span style="color: rgb(64, 64, 64); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);">
</span><span class="tag" style="color: rgb(0, 0, 128); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);"><<span class="title">input</span> <span class="attribute" style="color: rgb(255, 120, 0);">name</span>=<span class="value" style="color: rgb(64, 155, 28);">"accept"</span> <span class="attribute" style="color: rgb(255, 120, 0);">type</span>=<span class="value" style="color: rgb(64, 155, 28);">"hidden"</span> /></span><span style="color: rgb(64, 64, 64); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);">
</span><span class="tag" style="color: rgb(0, 0, 128); font-family: C**olas, Monaco, Menlo; font-size: 12px; line-height: 24px; white-space: pre-wrap; background-color: rgb(250, 250, 250);"></<span class="title">form</span>></span>
复制代码
我用TC的HTTP请求写了一百遍了,每次返回的错误都不一样。
谁帮我写个样板 让我看下这些参数的实际顺序。。。也就是说哪个参数对应哪个参数
作者:
夜不舞
时间:
2015-9-14 14:49
不知道为啥复制代码成这样了 从新复制一遍
<form method="post" action="http://upload.qiniu.com/"
enctype="multipart/form-data">
<input name="key" type="hidden" value="<resource_key>">
<input name="x:<custom_name>" type="hidden" value="<custom_value>">
<input name="token" type="hidden" value="<upload_token>">
<input name="file" type="file" />
<input name="crc32" type="hidden" />
<input name="accept" type="hidden" />
</form>
复制代码
欢迎光临 TC官方合作论坛 (http://bbs.52tc.co/)
Powered by Discuz! X3.1