开发者社区> 问答> 正文

post请求返回302是为什么

使用一句话识别RESTful API以POST方式请求返回的是

HTTP/1.1 302 Found
Server: Tengine

Date: Thu, 28 Mar 2019 02:52:56 GMT
Content-Type: text/html
Content-Length: 258
Connection: close
Location: http://err.taobao.com/error1.html
Via: tongyijieru-aliyun-com1119311638.em14[web,302]

请求报名:
POST /stream/v1/asr?appkey=SY*VZvAc&format=pcm&sample_rate=8000&enable_punctuation_prediction=true&enable_inverse_text_normalization=true HTTP/1.1
X-NLS-Token: 0112c68**7002b6c
Content-Type: application/octet-stream
cache-control: no-cache

Accept: /
Host: nls-gateway.cn-shanghai.aliyuncs.com
accept-encoding: gzip, deflate
content-length: 43408
Connection: keep-alive

展开
收起
游客irm3nny572smk 2019-03-28 11:10:10 10601 0
2 条回答
写回答
取消 提交回答
  • 看返回的内容,应该是请求到服务器后服务器报错,然后发送302重定向到http://err.taobao.com/error1.html 这个页面了。

    2019-07-17 23:32:05
    赞同 展开评论 打赏
  • 302重定向又称之为暂时性转移(Temporarily Moved ),英文名称:302 redirect。
    可以检查下Tengine是否有rewrite规则,或者应用代码里有没有重定向代码

    2019-07-17 23:32:05
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载