From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrey Torba Newsgroups: gmane.emacs.help Subject: make HTTP request with custom headers Date: Sat, 23 Oct 2010 11:13:15 +0300 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1287821643 1060 80.91.229.12 (23 Oct 2010 08:14:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Oct 2010 08:14:03 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 23 10:14:02 2010 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.69) (envelope-from ) id 1P9ZEk-0001Sy-Q1 for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Oct 2010 10:13:59 +0200 Original-Received: from localhost ([127.0.0.1]:58050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9ZEj-0006OJ-Te for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Oct 2010 04:13:58 -0400 Original-Received: from [140.186.70.92] (port=40483 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9ZE5-0006MW-Kx for Help-gnu-emacs@gnu.org; Sat, 23 Oct 2010 04:13:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9ZE4-0002Qk-RF for Help-gnu-emacs@gnu.org; Sat, 23 Oct 2010 04:13:17 -0400 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:54884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9ZE4-0002Qb-LA for Help-gnu-emacs@gnu.org; Sat, 23 Oct 2010 04:13:16 -0400 Original-Received: by qyk4 with SMTP id 4so284855qyk.0 for ; Sat, 23 Oct 2010 01:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=IihVhtkT4hQgOIO+m3XkLbPJ5aIPwSHpt0/eUKdTHCU=; b=StEtS4XM+ksgNmJUqZbLuaDBE6oqvgiVobV3dcLfGDnLgCGH162w7ayGXnO0BLcppC +Vm36p8G6/KtmR3lEUqIp0HysAkXNjx3HNI7m+9LhSgEUXbUldQj/Ug2nZmLxvkEnL4c SqAVkPoNSkThvcGdALM27+nJAJmePW8Ykm4ow= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=rzZjVyRCQPetDqRJYzSwkwCH4o1XLSvy97dlXCzM5LjCHC+WN2cwfjcxFwicIkbSvg DeCLEmcU0XxKeYZBzpb0M8uFKzlB92sVVWwVV6GlHMTS2DnOBqdhZ1jROrndyHHhr8vu M8xKmZiiovKIaCSZ8R6dO1GeXCoRv0IZB1fn0= Original-Received: by 10.229.240.78 with SMTP id kz14mr3177823qcb.230.1287821595762; Sat, 23 Oct 2010 01:13:15 -0700 (PDT) Original-Received: by 10.229.240.82 with HTTP; Sat, 23 Oct 2010 01:13:15 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/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:75194 Archived-At: Hello, I need HTTP request with custom headers: (let ((url-http-extra-headers '(("name" . "value")))) =A0 (url-http (url-generic-parse-url "http://myhost/") =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (lambda () (print "hello")) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 nil)) I use `url-http-extra-headers' variable from url-http.el module to pass extra headers but no effect. What do i do wrong? -- Regards, Andrey