Hello Team,
I am struggling with below issue, here is the scenario -
Configured a HTTPS service (here example - https://google.com). And trying CURL to it and expect html page in response.
$ curl https://apigateway.my-company.net/google-test
<html>
<head><title>308 Permanent Redirect</title></head>
<body bgcolor="white">
<center><h1>308 Permanent Redirect</h1></center>
<hr><center>openresty/1.13.6.2</center>
</body>
</html>
-
Service configuration -
{
“host”: “google.com”,
“created_at”: 1563783093,
“connect_timeout”: 60000,
“id”: “e605b471-2a69-4bb6-8b12-e1c66b016faf”,
“protocol”: “https”,
“name”: “google-website”,
“read_timeout”: 60000,
“port”: 443,
“path”: “/”,
“updated_at”: 1563783165,
“retries”: 5,
“write_timeout”: 60000,
“tags”: null
} -
Route configuration -
{
“id”: “4b79e717-81ea-4741-bb29-a2dfd1f509b3”,
“tags”: null,
“paths”: [
“/google-test”
],
“destinations”: null,
“protocols”: [
“https”
],
“created_at”: 1563783141,
“snis”: null,
“hosts”: ,
“name”: “google-test”,
“preserve_host”: false,
“regex_priority”: 0,
“strip_path”: true,
“sources”: null,
“updated_at”: 1563784249,
“https_redirect_status_code”: 308,
“service”: {
“id”: “e605b471-2a69-4bb6-8b12-e1c66b016faf”
},
“methods”: [
“GET”
]
}
Any clue what could be wrong?
PS: I have already edited https_redirect_status_code to 308.