回答編集履歴
6
実施内容コメント追加
answer
CHANGED
@@ -8,4 +8,7 @@
|
|
8
8
|
もしかしたら、¥マークを使った解決策があるかもと考えて調査中です。
|
9
9
|
command = "do shell script ""curl -X POST -H 'Content-Type: application/json' -d '" + "{ ¥""testId¥"":¥""1¥"" }" + "' " + url + """"
|
10
10
|
|
11
|
-
"do shell script "curl -X POST -H 'Content-Type: application/json' -d '{ \"testId\":\"1\" }' http:xxxxx""
|
11
|
+
"do shell script "curl -X POST -H 'Content-Type: application/json' -d '{ \"testId\":\"1\" }' http:xxxxx""
|
12
|
+
しかし、これでもエラーは解消しませんでした。。。
|
13
|
+
|
14
|
+
もう少し調査して、解決の兆しが見えないのであれば、他の通信方法も含めて検討する必要がありそうです。
|
5
誤字修正
answer
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
現状、試した事をメモしておきます
|
2
2
|
ダブルクオーテーションを使う際にはエスケープする必要があるとのことで、バックスラッシュを使用
|
3
3
|
下記の内容で実施しましたが、同様のエラーは発生しており、現状もまだ解決できていない状況です。
|
4
|
-
"{ \""
|
4
|
+
"{ \""testId\"":\""1\"" }"
|
5
|
-
"{ \""
|
5
|
+
"{ \""testId\"":\""1\"" }"
|
6
6
|
|
7
7
|
¥マークを使う事も試してみました。 String 文字列中にバックスラッシュが入りました。
|
8
8
|
もしかしたら、¥マークを使った解決策があるかもと考えて調査中です。
|
4
記載内容とバッティングする 内容があったので削除
answer
CHANGED
@@ -8,8 +8,4 @@
|
|
8
8
|
もしかしたら、¥マークを使った解決策があるかもと考えて調査中です。
|
9
9
|
command = "do shell script ""curl -X POST -H 'Content-Type: application/json' -d '" + "{ ¥""testId¥"":¥""1¥"" }" + "' " + url + """"
|
10
10
|
|
11
|
-
"do shell script "curl -X POST -H 'Content-Type: application/json' -d '{ \"testId\":\"1\" }' http:xxxxx""
|
11
|
+
"do shell script "curl -X POST -H 'Content-Type: application/json' -d '{ \"testId\":\"1\" }' http:xxxxx""
|
12
|
-
|
13
|
-
|
14
|
-
↓これは構文エラーが出ます。
|
15
|
-
"{ \"userId\":\"1\" }"
|
3
誤字修正
answer
CHANGED
@@ -6,9 +6,9 @@
|
|
6
6
|
|
7
7
|
¥マークを使う事も試してみました。 String 文字列中にバックスラッシュが入りました。
|
8
8
|
もしかしたら、¥マークを使った解決策があるかもと考えて調査中です。
|
9
|
-
command = "do shell script ""curl -X POST -H 'Content-Type: application/json' -d '" + "{ ¥""
|
9
|
+
command = "do shell script ""curl -X POST -H 'Content-Type: application/json' -d '" + "{ ¥""testId¥"":¥""1¥"" }" + "' " + url + """"
|
10
10
|
|
11
|
-
"do shell script "curl -X POST -H 'Content-Type: application/json' -d '{ \"
|
11
|
+
"do shell script "curl -X POST -H 'Content-Type: application/json' -d '{ \"testId\":\"1\" }' http:xxxxx""
|
12
12
|
|
13
13
|
|
14
14
|
↓これは構文エラーが出ます。
|
2
やった事を追加
answer
CHANGED
@@ -4,5 +4,12 @@
|
|
4
4
|
"{ \""userId\"":\""1\"" }"
|
5
5
|
"{ \""userId\"":\""1\"" }"
|
6
6
|
|
7
|
+
¥マークを使う事も試してみました。 String 文字列中にバックスラッシュが入りました。
|
8
|
+
もしかしたら、¥マークを使った解決策があるかもと考えて調査中です。
|
9
|
+
command = "do shell script ""curl -X POST -H 'Content-Type: application/json' -d '" + "{ ¥""userId¥"":¥""1¥"" }" + "' " + url + """"
|
10
|
+
|
11
|
+
"do shell script "curl -X POST -H 'Content-Type: application/json' -d '{ \"userId\":\"1\" }' http:xxxxx""
|
12
|
+
|
13
|
+
|
7
14
|
↓これは構文エラーが出ます。
|
8
15
|
"{ \"userId\":\"1\" }"
|
1
誤字修正
answer
CHANGED
@@ -4,5 +4,5 @@
|
|
4
4
|
"{ \""userId\"":\""1\"" }"
|
5
5
|
"{ \""userId\"":\""1\"" }"
|
6
6
|
|
7
|
-
↓
|
7
|
+
↓これは構文エラーが出ます。
|
8
8
|
"{ \"userId\":\"1\" }"
|