在 Laravel POST 请求上重定向 302 [英] Redirect 302 on Laravel POST request
本文介绍了在 Laravel POST 请求上重定向 302的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个 Laravel Web 服务
.当我尝试使用 Web 表单进行 POST
路由时,一切正常,但是当我使用 Postman
之类的 REST 客户端尝试相同时,它没有得到我应该的响应.
I'm developing a Laravel Web Service
.
When I try my POST
routes with web forms, everything works fine, but when I try the same with a REST Client like Postman
it doesn't get me the response that should.
它给了我状态代码 302
,并重定向到/".有什么问题?
It gives me status code 302
, and redirects to "/". What's the problem?
推荐答案
看起来在 postman 中你应该指出你发送的数据是 'x-www-url-formurlencoded'
it looks like in postman you should point that the data you send is 'x-www-url-formurlencoded'
这篇关于在 Laravel POST 请求上重定向 302的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文