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

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

Re: call-process


From: Thierry Volpiatto
Subject: Re: call-process
Date: Thu, 28 Aug 2008 13:39:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

najja <sumnerbarney@gmail.com> writes:

> 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?
>
>
>

May be it will work with apply, try that:

,----
| (apply 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";))
`----

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France




reply via email to

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