From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: call-process Date: Thu, 28 Aug 2008 13:39:03 +0200 Message-ID: <87tzd5v06g.fsf@tux.homenetwork> References: <77e78a87-2b12-4b39-9a91-d8cf82ae7c14@v13g2000pro.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219923761 25380 80.91.229.12 (28 Aug 2008 11:42:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2008 11:42:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: najja Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 28 13:43:35 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KYfuT-0000vk-EY for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Aug 2008 13:43:29 +0200 Original-Received: from localhost ([127.0.0.1]:56011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYftU-0003S8-TT for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Aug 2008 07:42:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYftD-0003Pw-Tu for help-gnu-emacs@gnu.org; Thu, 28 Aug 2008 07:42:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYftB-0003PC-VW for help-gnu-emacs@gnu.org; Thu, 28 Aug 2008 07:42:11 -0400 Original-Received: from [199.232.76.173] (port=58954 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYftB-0003P9-SA for help-gnu-emacs@gnu.org; Thu, 28 Aug 2008 07:42:09 -0400 Original-Received: from fk-out-0910.google.com ([209.85.128.184]:23374) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KYftB-0008NX-B2 for help-gnu-emacs@gnu.org; Thu, 28 Aug 2008 07:42:09 -0400 Original-Received: by fk-out-0910.google.com with SMTP id 18so235542fkq.10 for ; Thu, 28 Aug 2008 04:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=gpifHZi2ozI0DtV/69c6Ruah2tgBoNRXMgmj7+T1qSQ=; b=wsBWWDg7YAgl9TrWnCplyDAFy03lr9Ej9QDAiO+OKjcEV9IlhnhE2FvjcA9xN2z6Do pdqipbDUzeJM9osikv7vooAF3Av/I94oMCjOGIdh1zS8E0kA+stKv2KJZArjYp9sTOM8 Ie5i7iDr4aiM0s/dpxo4bbeOOHQL7xuq0gwmY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=UFJBff2AuJaND0oGjaGVoNQFDMGc7BosOg62Li0zIFg5WcLJe9k+a2P82/imSMmqjn wtm8QI40I5Et6zUg8GPWrIh/7dzdPjhcgdl30VIuXlRY5wolMpjPzBJU7UrLlmQYejHx d7sE602V3CI8pSp/WPW2OrLk41uxcTp79YTLc= Original-Received: by 10.181.20.6 with SMTP id x6mr1944728bki.32.1219923728430; Thu, 28 Aug 2008 04:42:08 -0700 (PDT) Original-Received: from tux.homenetwork ( [79.85.211.122]) by mx.google.com with ESMTPS id z37sm689307ikz.6.2008.08.28.04.42.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 28 Aug 2008 04:42:07 -0700 (PDT) In-Reply-To: <77e78a87-2b12-4b39-9a91-d8cf82ae7c14@v13g2000pro.googlegroups.com> (najja's message of "Thu, 28 Aug 2008 03:20:00 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57041 Archived-At: najja 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