http.StatusFound是用于点击重定向的正确状态吗?

huangapple go评论107阅读模式
英文:

Is the http.StatusFound the correct status for a click redirect?

问题

我有一个简单的应用程序,需要从请求中获取任意输入参数,然后将用户重定向到相应的外部位置。是否使用 http.StatusFound 作为正确的响应状态?

英文:

I have a simplistic app that needs to take arbitrary input params from a request and then direct the user to the corresponding external location. Is the

> http.StatusFound

the correct response status?

答案1

得分: 0

有许多不同的3xx状态码通常与重定向相关联,其中之一是302 Found。请参阅Wikipedia获取完整列表。

英文:

There are a number of different 3xx status codes that are normally associated with redirects, and 302 Found is one of them. See Wikipedia for the complete list.

huangapple
  • 本文由 发表于 2014年4月6日 05:37:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/22887148.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定