TC官方合作论坛

 找回密码
 立即注册
查看: 226|回复: 1
打印 上一主题 下一主题

[问题] POST请求求帮助

[复制链接]
跳转到指定楼层
楼主
发表于 2015-9-14 14:47:02 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

马上加入TC

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
原文例子:
  1. <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>
  2. <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);">
  3.   </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);">
  4.   </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);">
  5.   </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);">
  6.   </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);">
  7.   </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);">
  8.   </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);">
  9. </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:23 | 只看该作者
不知道为啥复制代码成这样了 从新复制一遍
  1. <form method="post" action="http://upload.qiniu.com/"
  2. enctype="multipart/form-data">
  3.   <input name="key" type="hidden" value="<resource_key>">
  4.   <input name="x:<custom_name>" type="hidden" value="<custom_value>">
  5.   <input name="token" type="hidden" value="<upload_token>">
  6.   <input name="file" type="file" />
  7.   <input name="crc32" type="hidden" />
  8.   <input name="accept" type="hidden" />
  9. </form>
复制代码
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /2 下一条

关闭

小黑屋|TC官方合作论坛 (苏ICP备18043773号

GMT+8, 2025-9-21 23:33 , Processed in 0.140533 second(s), 26 queries .

Powered by 海安天坑软件科技有限公司

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表