質問編集履歴

2

header情報などを追加いたしました。

2020/10/17 01:04

投稿

faust_0918
faust_0918

スコア7

test CHANGED
File without changes
test CHANGED
@@ -92,4 +92,156 @@
92
92
 
93
93
  どなたかアドバイスいただけないでしょうか。
94
94
 
95
+
96
+
97
+ ### ヘッダー情報
98
+
99
+
100
+
101
+ ヘッダー情報などを追記します。(Chromeのネットワークタブで確認しました)
102
+
103
+ ◎渡す文字数が少なくてうまくいく場合
104
+
105
+
106
+
107
+ ```general
108
+
109
+ Request URL: http://api.myDomain.com/test/
110
+
111
+ Request Method: POST
112
+
113
+ Status Code: 200 OK
114
+
115
+ Remote Address: 183.**.**.37:80
116
+
117
+ Referrer Policy: strict-origin-when-cross-origin
118
+
119
+ ```
120
+
121
+
122
+
123
+ ```responseHeader
124
+
125
+ HTTP/1.1 200 OK
126
+
127
+ Server: nginx
128
+
129
+ Date: Sat, 17 Oct 2020 00:51:54 GMT
130
+
131
+ Content-Type: text/html; charset=utf-8
132
+
133
+ Content-Length: 219
134
+
135
+ Connection: keep-alive
136
+
137
+ Access-Control-Allow-Origin: http://localhost:8080
138
+
139
+ Vary: Origin
140
+
141
+ Accept-Ranges: bytes
142
+
143
+
144
+
145
+ ```
146
+
147
+
148
+
149
+ ```RequestHeader
150
+
151
+ POST /test/ HTTP/1.1
152
+
153
+ Host: api.np-sys.com
154
+
155
+ Connection: keep-alive
156
+
157
+ Content-Length: 58
158
+
159
+ Accept: */*
160
+
161
+ User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
162
+
163
+ Content-Type: application/x-www-form-urlencoded; charset=UTF-8
164
+
165
+ Origin: http://localhost:8080
166
+
167
+ Referer: http://localhost:8080/
168
+
169
+ Accept-Encoding: gzip, deflate
170
+
171
+ Accept-Language: ja,en-US;q=0.9,en;q=0.8
172
+
173
+ ```
174
+
175
+
176
+
177
+
178
+
179
+ ◎渡す文字数が多くてうまくいかない場合
180
+
181
+
182
+
183
+ ```general
184
+
185
+ Request URL: http://api.myDOmain.com/test/
186
+
187
+ Referrer Policy: strict-origin-when-cross-origin
188
+
189
+ ```
190
+
191
+
192
+
193
+ ```responseHeader
194
+
195
+ HTTP/1.1 500 Internal Server Error
196
+
197
+ Server: nginx
198
+
199
+ Date: Sat, 17 Oct 2020 00:51:56 GMT
200
+
201
+ Content-Type: text/html
202
+
203
+ Content-Length: 3028
204
+
205
+ Connection: keep-alive
206
+
207
+ Last-Modified: Sat, 28 Jul 2018 08:59:43 GMT
208
+
209
+ ETag: "bd4-5720b730b4f22"
210
+
211
+
212
+
213
+ ```
214
+
215
+
216
+
217
+ ```RequestHeader
218
+
219
+ POST /test/ HTTP/1.1
220
+
221
+ Host: api.myDomain.com
222
+
223
+ Connection: keep-alive
224
+
225
+ Content-Length: 311
226
+
227
+ Accept: */*
228
+
229
+ User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
230
+
231
+ Content-Type: application/x-www-form-urlencoded; charset=UTF-8
232
+
233
+ Origin: http://localhost:8080
234
+
235
+ Referer: http://localhost:8080/
236
+
237
+ Accept-Encoding: gzip, deflate
238
+
239
+ Accept-Language: ja,en-US;q=0.9,en;q=0.8
240
+
241
+ ```
242
+
243
+
244
+
245
+
246
+
95
- よろしくお願いいたします。
247
+ 情報不足や要領悪い部分あると思いますが、何卒よろしくお願いいたします。

1

2020/10/17 01:04

投稿

faust_0918
faust_0918

スコア7

test CHANGED
File without changes
test CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  let input_message = document.getElementById("input_message").value;
30
30
 
31
- $.post( 'http://api.np-sys.com/201014_return_val_test/', 'queryA='+input_message )
31
+ $.post( 'http://api.myDomain/test/', 'queryA='+input_message )
32
32
 
33
33
  .done(function( data ) {
34
34