From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: A (probably silly) problem with request.el Date: Thu, 04 Jun 2015 23:12:10 +0200 Message-ID: <87bngv89g5.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1433452381 7595 80.91.229.3 (4 Jun 2015 21:13:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jun 2015 21:13:01 +0000 (UTC) To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 04 23:12:45 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z0cRP-0005su-LQ for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jun 2015 23:12:43 +0200 Original-Received: from localhost ([::1]:44064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0cRO-0006M0-PZ for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jun 2015 17:12:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0cRE-0006Lu-GH for help-gnu-emacs@gnu.org; Thu, 04 Jun 2015 17:12:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0cRA-0008L1-8r for help-gnu-emacs@gnu.org; Thu, 04 Jun 2015 17:12:32 -0400 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:43936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0cRA-0008JY-1j for help-gnu-emacs@gnu.org; Thu, 04 Jun 2015 17:12:28 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 480BC572006 for ; Thu, 4 Jun 2015 23:12:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WYaKUGTjEbk4 for ; Thu, 4 Jun 2015 23:12:20 +0200 (CEST) Original-Received: from localhost (unknown [109.232.24.146]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 7D9DF572005 for ; Thu, 4 Jun 2015 23:12:19 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:5e00:2:52::8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104755 Archived-At: Hi all, I'd like to write a small library which needs to make HTTP requests. Now I'm completely new to this whole networking thing, but I know I can say e.g. curl http://google.com at the command line. However, (require 'request) (request "http://google.com") won't do anything good - it yields this: --8<---------------cut here---------------start------------->8--- [cl-struct-request-response nil nil nil nil nil "http://google.com" nil (:error (closure (t) (&rest args) (apply 'request-default-error-callback '"http://google.com" args)) :url "http://google.com" :response #0) # nil nil curl nil] --8<---------------cut here---------------end--------------->8--- What am I doing wrong? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University