I am using Go (1.11) and echo in the web application I am developing, and redirect processing is performed with the following command.
echoContext.Redirect(http.StatusFound,targetUrl)
However, some requests can be successfully redirected, while others are not redirected. The request is probably a GET request from the server, is there any request that cannot be redirected?
CodePudding user response:
Apparently there seems to be a setting in the cURL option that does not follow the redirect of the request destination. This was probably the cause.