Skip to content

Get Request is used when Post Request is Used. #4980

Answered by Maillol
DuckMasterAl asked this question in Q&A
Discussion options

You must be logged in to vote

POST to 'http://api.trello.com/1/cards' returns a 301:

$ curl -D - -X POST http://api.trello.com/1/cards
HTTP/1.1 301 Moved Permanently
location: https://api.trello.com/1/cards
date: Wed, 30 Sep 2020 19:53:56 GMT
server: envoy
content-length: 0

This behaviour seems expected.

it is a duplicate: #3082

According to rfc2616:

10.3.2 301 Moved Permanently

 If the 301 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued. 

      Note: When automatically redirecting a POST request after
      receiving a …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by DuckMasterAl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4980 on October 01, 2020 05:47.