質問編集履歴
1
実行方法「Reshat5\.5のターミナルにてコマンドを実行する。」が抜けていました。
title
CHANGED
|
@@ -1,1 +1,1 @@
|
|
|
1
|
-
curlのエスケープ
|
|
1
|
+
curlでのファイル転送時のファイル名メタ文字エスケープがうまく行きません
|
body
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
curlにて、ファイル転送を行おうとしたら、下記エラーとなり転送できません。
|
|
2
2
|
どなたか、解決方法をご教示いただけないでしょうか?
|
|
3
3
|
|
|
4
|
+
※Reshat5.5のターミナルにてコマンドを実行する。
|
|
5
|
+
|
|
4
6
|
●コマンド内容と結果
|
|
5
7
|
curl --user XXXX:XXXX -F "filedata=@\"test.png\"" http://localhost:7777/upload?/test/uploader/sample
|
|
6
8
|
curl: (26) failed creating formpost data
|
|
@@ -16,4 +18,10 @@
|
|
|
16
18
|
※下記に用紙ダブルクォーテーションを外すと、転送できます。
|
|
17
19
|
curl --user XXXX:XXXX -F filedata=@test.png http://localhost:7777/upload?/test/uploader/sample
|
|
18
20
|
|
|
21
|
+
※maOSXのcurlでは、期待通り動作しました。(下記は実行macのcurlバージョン)
|
|
22
|
+
curl 7.30.0 (x86_64-apple-darwin13.0) libcurl/7.30.0 SecureTransport zlib/1.2.5
|
|
23
|
+
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
|
|
24
|
+
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz
|
|
25
|
+
|
|
26
|
+
|
|
19
27
|
以上、よろしくお願い致します。
|