質問編集履歴
2
コード、レスポンスなどの情報を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,5 +13,86 @@
|
|
13
13
|
|
14
14
|

|
15
15
|
|
16
|
+
もしかしたら、HTMLの記述が。。。
|
17
|
+
という可能性もありましたのでそちらのコードも貼り付けます。
|
18
|
+
```php
|
19
|
+
<?php
|
20
|
+
echo "GET".PHP_EOL;
|
21
|
+
var_dump($_GET);
|
22
|
+
echo "POST".PHP_EOL;
|
23
|
+
var_dump($_POST);
|
24
|
+
|
25
|
+
$main =<<<MAIN
|
26
|
+
<html>
|
27
|
+
<head>
|
28
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
29
|
+
<title>Hello Lambda</title>
|
30
|
+
</head>
|
31
|
+
<body>
|
32
|
+
<h1>Hello Lambda</h1>
|
33
|
+
<div>
|
34
|
+
<form action='./index.php' method='POST'>
|
35
|
+
<input type='text' name='name' value=''>
|
36
|
+
<input type='submit' value='GO!'>
|
37
|
+
</form>
|
38
|
+
</body>
|
39
|
+
</html>
|
40
|
+
MAIN;
|
41
|
+
|
42
|
+
echo $main;
|
43
|
+
exit;
|
44
|
+
```
|
45
|
+
|
46
|
+
|
47
|
+
ブラウザでの実行結果
|
48
|
+

|
49
|
+
|
50
|
+
|
51
|
+
その際のヘッダー情報
|
52
|
+
```log
|
53
|
+
# General
|
54
|
+
Request URL: https://poypov83a3.execute-api.us-east-2.amazonaws.com/Prod/index.php
|
55
|
+
Request Method: POST
|
56
|
+
Status Code: 200
|
57
|
+
Remote Address: 13.32.230.249:443
|
58
|
+
Referrer Policy: no-referrer-when-downgrade
|
59
|
+
|
60
|
+
# Response Headers
|
61
|
+
content-length: 438
|
62
|
+
content-type: text/html; charset=UTF-8
|
63
|
+
date: Wed, 05 Dec 2018 09:15:35 GMT
|
64
|
+
status: 200
|
65
|
+
via: 1.1 b8e172c46fff5261a4891512fb483327.cloudfront.net (CloudFront)
|
66
|
+
x-amz-apigw-id: RbSQsEt1iYcFbtw=
|
67
|
+
x-amz-cf-id: 17GWiWLN7WJHiIWFyIxB1fe13c1jDdpcg5MlZaxewpSul0CEYuxr1A==
|
68
|
+
x-amzn-remapped-connection: close
|
69
|
+
x-amzn-remapped-date: Wed, 05 Dec 2018 09:15:35 +0000
|
70
|
+
x-amzn-remapped-host: poypov83a3.execute-api.us-east-2.amazonaws.com
|
71
|
+
x-amzn-requestid: 52f52ae0-f86e-11e8-90a8-ad224e56514d
|
72
|
+
x-amzn-trace-id: Root=1-5c079737-0eb15ca0aec97c067630ec10;Sampled=1
|
73
|
+
x-cache: Miss from cloudfront
|
74
|
+
x-powered-by: PHP/7.1.7
|
75
|
+
|
76
|
+
# Request Headers
|
77
|
+
:authority: poypov83a3.execute-api.us-east-2.amazonaws.com
|
78
|
+
:method: POST
|
79
|
+
:path: /Prod/index.php
|
80
|
+
:scheme: https
|
81
|
+
accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
|
82
|
+
accept-encoding: gzip, deflate, br
|
83
|
+
accept-language: ja,en-US;q=0.9,en;q=0.8
|
84
|
+
cache-control: max-age=0
|
85
|
+
content-length: 9
|
86
|
+
content-type: application/x-www-form-urlencoded
|
87
|
+
origin: https://poypov83a3.execute-api.us-east-2.amazonaws.com
|
88
|
+
referer: https://poypov83a3.execute-api.us-east-2.amazonaws.com/Prod/index.php
|
89
|
+
upgrade-insecure-requests: 1
|
90
|
+
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36
|
91
|
+
|
92
|
+
# Form Data
|
93
|
+
name: test
|
94
|
+
```
|
95
|
+
|
96
|
+
|
16
97
|
どなたかご教示頂けないでしょうか。
|
17
98
|
よろしくお願いいたします。
|
1
API Gateway設定画面のスクリーンショット追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,5 +11,7 @@
|
|
11
11
|
API Gatewayあたりなのかな?と思っているのですが、
|
12
12
|
どのあたりの設定を確認すればよいのかわかりません。
|
13
13
|
|
14
|
+

|
15
|
+
|
14
16
|
どなたかご教示頂けないでしょうか。
|
15
17
|
よろしくお願いいたします。
|