unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: najja <sumnerbarney@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: call-process
Date: Thu, 28 Aug 2008 13:39:03 +0200	[thread overview]
Message-ID: <87tzd5v06g.fsf@tux.homenetwork> (raw)
In-Reply-To: <77e78a87-2b12-4b39-9a91-d8cf82ae7c14@v13g2000pro.googlegroups.com> (najja's message of "Thu, 28 Aug 2008 03:20:00 -0700 (PDT)")

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	other threads:[~2008-08-28 11:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-28 10:20 call-process najja
2008-08-28 11:39 ` Thierry Volpiatto [this message]
2008-08-28 13:55 ` call-process Nikolaj Schumacher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tzd5v06g.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sumnerbarney@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).