From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lee B Newsgroups: gmane.emacs.devel Subject: Re: How do you do authentication with url.el? Date: Fri, 13 Nov 2015 10:45:16 +0900 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1447379141 19268 80.91.229.3 (13 Nov 2015 01:45:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Nov 2015 01:45:41 +0000 (UTC) Cc: emacs-devel To: bruce.connor.am@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 13 02:45:33 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Zx3Qi-0005L4-Ao for ged-emacs-devel@m.gmane.org; Fri, 13 Nov 2015 02:45:32 +0100 Original-Received: from localhost ([::1]:50570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx3Qi-0002Jz-11 for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2015 20:45:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx3Qd-0002GE-5h for emacs-devel@gnu.org; Thu, 12 Nov 2015 20:45:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zx3QZ-0003mZ-OK for emacs-devel@gnu.org; Thu, 12 Nov 2015 20:45:26 -0500 Original-Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]:35842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx3QZ-0003mN-IM for emacs-devel@gnu.org; Thu, 12 Nov 2015 20:45:23 -0500 Original-Received: by pacdm15 with SMTP id dm15so82870195pac.3 for ; Thu, 12 Nov 2015 17:45:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; bh=jed1DevRhcxS7q4TyHXhYdq8SRRH5vxeq7bTrHbkH9M=; b=Y3gwcld3mEQFBVxFo/HybDr0H1zWeZw7vWkfDkbWkkJV09BB/i41u8nOQ2xgpOmbo5 a2qFTlTAiLSCb1ZkE7Ljz/U+vLcHv4vOMVWbS0aMyTcG1R07w6FZKCjcGxNLokBGHfRo KBaEDvX4Sac5JPE2uSw6Ryz6llahf3D+G0PARDPHPzFK88eI97Gxoc/sjzkSVA66rlhu H7cAwSCEXiZTIZ3eEh45oqIEtDPSsO+7vXcTxzyfLes1Qfm1umNNbCsAMEwBUMhqTNxv D6UcwqKWp3qrzpifK0oMJalO2r7z4HElaDEuv0BGMZ7Q02zjWqFpb42YL/1uMq3zVNH7 2GaA== X-Received: by 10.68.227.69 with SMTP id ry5mr28231963pbc.148.1447379122822; Thu, 12 Nov 2015 17:45:22 -0800 (PST) Original-Received: from mbp.local (122x212x176x138.ap122.ftth.ucom.ne.jp. [122.212.176.138]) by smtp.gmail.com with ESMTPSA id f5sm8447904pas.8.2015.11.12.17.45.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Nov 2015 17:45:22 -0800 (PST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:194313 Archived-At: On Fri, Nov 13 2015, Artur Malabarba wrote: > I'm trying to communicate with a Restful api using url.el. When it comes to > authentication, their documentation simply says to call curl with "-u > user:password". > > What is the url equivalent of that option in curl? That is, how do I replicate > the following command with url-retrieve-synchronously? > curl -u user:password https://gnu.org Does something like 'https://username:password@domain' work? Lee.