在Laravel POST请求重定向302 [英] Redirect 302 on Laravel POST request

查看:3411
本文介绍了在Laravel POST请求重定向302的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 Laravel Web服务
当我尝试用网页形式我的 POST 路线,一切工作正常,但是当我试图用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.

这让我的状态code 302 ,并且重定向到/。有什么问题?

It gives me status code 302, and redirects to "/". What's the problem?

推荐答案

它看起来像邮递员,你应该指向您发送的数据是X-WWW-URL-formurlen codeD

it looks like in postman you should point that the data you send is 'x-www-url-formurlencoded'

这篇关于在Laravel POST请求重定向302的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆