質問編集履歴
2
コード、レスポンスなどの情報を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,6 +28,168 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
+
もしかしたら、HTMLの記述が。。。
|
32
|
+
|
33
|
+
という可能性もありましたのでそちらのコードも貼り付けます。
|
34
|
+
|
35
|
+
```php
|
36
|
+
|
37
|
+
<?php
|
38
|
+
|
39
|
+
echo "GET".PHP_EOL;
|
40
|
+
|
41
|
+
var_dump($_GET);
|
42
|
+
|
43
|
+
echo "POST".PHP_EOL;
|
44
|
+
|
45
|
+
var_dump($_POST);
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
$main =<<<MAIN
|
50
|
+
|
51
|
+
<html>
|
52
|
+
|
53
|
+
<head>
|
54
|
+
|
55
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
56
|
+
|
57
|
+
<title>Hello Lambda</title>
|
58
|
+
|
59
|
+
</head>
|
60
|
+
|
61
|
+
<body>
|
62
|
+
|
63
|
+
<h1>Hello Lambda</h1>
|
64
|
+
|
65
|
+
<div>
|
66
|
+
|
67
|
+
<form action='./index.php' method='POST'>
|
68
|
+
|
69
|
+
<input type='text' name='name' value=''>
|
70
|
+
|
71
|
+
<input type='submit' value='GO!'>
|
72
|
+
|
73
|
+
</form>
|
74
|
+
|
75
|
+
</body>
|
76
|
+
|
77
|
+
</html>
|
78
|
+
|
79
|
+
MAIN;
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
echo $main;
|
84
|
+
|
85
|
+
exit;
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
ブラウザでの実行結果
|
94
|
+
|
95
|
+

|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
その際のヘッダー情報
|
102
|
+
|
103
|
+
```log
|
104
|
+
|
105
|
+
# General
|
106
|
+
|
107
|
+
Request URL: https://poypov83a3.execute-api.us-east-2.amazonaws.com/Prod/index.php
|
108
|
+
|
109
|
+
Request Method: POST
|
110
|
+
|
111
|
+
Status Code: 200
|
112
|
+
|
113
|
+
Remote Address: 13.32.230.249:443
|
114
|
+
|
115
|
+
Referrer Policy: no-referrer-when-downgrade
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
# Response Headers
|
120
|
+
|
121
|
+
content-length: 438
|
122
|
+
|
123
|
+
content-type: text/html; charset=UTF-8
|
124
|
+
|
125
|
+
date: Wed, 05 Dec 2018 09:15:35 GMT
|
126
|
+
|
127
|
+
status: 200
|
128
|
+
|
129
|
+
via: 1.1 b8e172c46fff5261a4891512fb483327.cloudfront.net (CloudFront)
|
130
|
+
|
131
|
+
x-amz-apigw-id: RbSQsEt1iYcFbtw=
|
132
|
+
|
133
|
+
x-amz-cf-id: 17GWiWLN7WJHiIWFyIxB1fe13c1jDdpcg5MlZaxewpSul0CEYuxr1A==
|
134
|
+
|
135
|
+
x-amzn-remapped-connection: close
|
136
|
+
|
137
|
+
x-amzn-remapped-date: Wed, 05 Dec 2018 09:15:35 +0000
|
138
|
+
|
139
|
+
x-amzn-remapped-host: poypov83a3.execute-api.us-east-2.amazonaws.com
|
140
|
+
|
141
|
+
x-amzn-requestid: 52f52ae0-f86e-11e8-90a8-ad224e56514d
|
142
|
+
|
143
|
+
x-amzn-trace-id: Root=1-5c079737-0eb15ca0aec97c067630ec10;Sampled=1
|
144
|
+
|
145
|
+
x-cache: Miss from cloudfront
|
146
|
+
|
147
|
+
x-powered-by: PHP/7.1.7
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
# Request Headers
|
152
|
+
|
153
|
+
:authority: poypov83a3.execute-api.us-east-2.amazonaws.com
|
154
|
+
|
155
|
+
:method: POST
|
156
|
+
|
157
|
+
:path: /Prod/index.php
|
158
|
+
|
159
|
+
:scheme: https
|
160
|
+
|
161
|
+
accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
|
162
|
+
|
163
|
+
accept-encoding: gzip, deflate, br
|
164
|
+
|
165
|
+
accept-language: ja,en-US;q=0.9,en;q=0.8
|
166
|
+
|
167
|
+
cache-control: max-age=0
|
168
|
+
|
169
|
+
content-length: 9
|
170
|
+
|
171
|
+
content-type: application/x-www-form-urlencoded
|
172
|
+
|
173
|
+
origin: https://poypov83a3.execute-api.us-east-2.amazonaws.com
|
174
|
+
|
175
|
+
referer: https://poypov83a3.execute-api.us-east-2.amazonaws.com/Prod/index.php
|
176
|
+
|
177
|
+
upgrade-insecure-requests: 1
|
178
|
+
|
179
|
+
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
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
# Form Data
|
184
|
+
|
185
|
+
name: test
|
186
|
+
|
187
|
+
```
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
31
193
|
どなたかご教示頂けないでしょうか。
|
32
194
|
|
33
195
|
よろしくお願いいたします。
|
1
API Gateway設定画面のスクリーンショット追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,6 +24,10 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
+

|
28
|
+
|
29
|
+
|
30
|
+
|
27
31
|
どなたかご教示頂けないでしょうか。
|
28
32
|
|
29
33
|
よろしくお願いいたします。
|