help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

call-process


From: najja
Subject: call-process
Date: Thu, 28 Aug 2008 03:20:00 -0700 (PDT)
User-agent: G2/1.0

Hi there,

I want the use curl to send my post to blogger data api. The following
command works perfectly in the command line of my windows box:

curl -v --header "string in e-blog-auth" -d "@d:\.myemacs\e-blog-tmp"
https://www.blogger.com/feeds/blogid/posts/default

However, when I translate it into the following call-process, it
returns a error message called "Content is not allowed in prolog".

(call-process "curl" nil e-blog-buffer nil
                  "-v" "--header"
                  e-blog-auth
                  "--header" "Content-Type: application/atom+xml"
                  "-d" "\"@d:\\.myemacs\\e-blog-tmp\""
                  "https://www.blogger.com/feeds/blogid/posts/default
\")

Is there anything wrong with the function?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]