質問編集履歴
2
header情報などを追加いたしました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -45,4 +45,80 @@
|
|
45
45
|
|
46
46
|
ある文字数以上で発生するのでまったく意味がわかりません。
|
47
47
|
どなたかアドバイスいただけないでしょうか。
|
48
|
+
|
49
|
+
### ヘッダー情報
|
50
|
+
|
51
|
+
ヘッダー情報などを追記します。(Chromeのネットワークタブで確認しました)
|
52
|
+
◎渡す文字数が少なくてうまくいく場合
|
53
|
+
|
54
|
+
```general
|
55
|
+
Request URL: http://api.myDomain.com/test/
|
56
|
+
Request Method: POST
|
57
|
+
Status Code: 200 OK
|
58
|
+
Remote Address: 183.**.**.37:80
|
59
|
+
Referrer Policy: strict-origin-when-cross-origin
|
60
|
+
```
|
61
|
+
|
62
|
+
```responseHeader
|
63
|
+
HTTP/1.1 200 OK
|
64
|
+
Server: nginx
|
65
|
+
Date: Sat, 17 Oct 2020 00:51:54 GMT
|
66
|
+
Content-Type: text/html; charset=utf-8
|
67
|
+
Content-Length: 219
|
68
|
+
Connection: keep-alive
|
69
|
+
Access-Control-Allow-Origin: http://localhost:8080
|
70
|
+
Vary: Origin
|
71
|
+
Accept-Ranges: bytes
|
72
|
+
|
73
|
+
```
|
74
|
+
|
75
|
+
```RequestHeader
|
76
|
+
POST /test/ HTTP/1.1
|
77
|
+
Host: api.np-sys.com
|
78
|
+
Connection: keep-alive
|
79
|
+
Content-Length: 58
|
80
|
+
Accept: */*
|
81
|
+
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
|
82
|
+
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
|
83
|
+
Origin: http://localhost:8080
|
84
|
+
Referer: http://localhost:8080/
|
85
|
+
Accept-Encoding: gzip, deflate
|
86
|
+
Accept-Language: ja,en-US;q=0.9,en;q=0.8
|
87
|
+
```
|
88
|
+
|
89
|
+
|
90
|
+
◎渡す文字数が多くてうまくいかない場合
|
91
|
+
|
92
|
+
```general
|
93
|
+
Request URL: http://api.myDOmain.com/test/
|
94
|
+
Referrer Policy: strict-origin-when-cross-origin
|
95
|
+
```
|
96
|
+
|
97
|
+
```responseHeader
|
98
|
+
HTTP/1.1 500 Internal Server Error
|
99
|
+
Server: nginx
|
100
|
+
Date: Sat, 17 Oct 2020 00:51:56 GMT
|
101
|
+
Content-Type: text/html
|
102
|
+
Content-Length: 3028
|
103
|
+
Connection: keep-alive
|
104
|
+
Last-Modified: Sat, 28 Jul 2018 08:59:43 GMT
|
105
|
+
ETag: "bd4-5720b730b4f22"
|
106
|
+
|
107
|
+
```
|
108
|
+
|
109
|
+
```RequestHeader
|
110
|
+
POST /test/ HTTP/1.1
|
111
|
+
Host: api.myDomain.com
|
112
|
+
Connection: keep-alive
|
113
|
+
Content-Length: 311
|
114
|
+
Accept: */*
|
115
|
+
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
|
116
|
+
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
|
117
|
+
Origin: http://localhost:8080
|
118
|
+
Referer: http://localhost:8080/
|
119
|
+
Accept-Encoding: gzip, deflate
|
120
|
+
Accept-Language: ja,en-US;q=0.9,en;q=0.8
|
121
|
+
```
|
122
|
+
|
123
|
+
|
48
|
-
よろしくお願いいたします。
|
124
|
+
情報不足や要領悪い部分あると思いますが、何卒よろしくお願いいたします。
|
1
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
14
|
console.log(123);
|
15
15
|
let input_message = document.getElementById("input_message").value;
|
16
|
-
$.post( 'http://api.
|
16
|
+
$.post( 'http://api.myDomain/test/', 'queryA='+input_message )
|
17
17
|
.done(function( data ) {
|
18
18
|
console.log( data );
|
19
19
|
data = JSON.parse(data)
|