From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: How do you do authentication with url.el? Date: Fri, 13 Nov 2015 01:09:28 +0000 Message-ID: References: Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3ca1e1801fb052461b6ca X-Trace: ger.gmane.org 1447376977 20068 80.91.229.3 (13 Nov 2015 01:09:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Nov 2015 01:09:37 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 13 02:09:36 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 1Zx2rv-0002a0-7p for ged-emacs-devel@m.gmane.org; Fri, 13 Nov 2015 02:09:35 +0100 Original-Received: from localhost ([::1]:50499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx2ru-0002mp-Kf for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2015 20:09:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx2rr-0002ma-7M for emacs-devel@gnu.org; Thu, 12 Nov 2015 20:09:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zx2rq-00008A-8s for emacs-devel@gnu.org; Thu, 12 Nov 2015 20:09:31 -0500 Original-Received: from mail-lb0-x229.google.com ([2a00:1450:4010:c04::229]:35848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx2rq-00007w-1b for emacs-devel@gnu.org; Thu, 12 Nov 2015 20:09:30 -0500 Original-Received: by lbblt2 with SMTP id lt2so45679981lbb.3 for ; Thu, 12 Nov 2015 17:09:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=rR+Cki98p3RIRPUWXnJwBOxnfY9SQA0h4cfESRqu5yc=; b=xcCK2i+VrWtdt4zce6BZEZSBXGVc1zwxxAEuCYEWfFZI9dcihJgKFjlea6DC6BiYyg pV2A7yv8phJMQE81EqLxxkKH0aEgSZCwnd+UFLlh/R9pjQlQv8tWLOjrjIkotseXM7J4 5/T/a6j3qVY3XZpPlQinILQiVvzzQNbhCsYLZ8k0W47L1eyZHwUGguEbhuGJRc+q7Ffd rWKGR2RdFuwVa8y1P7dRLAYYjcI5U4Jx4YTHeTTHgE9kB48fpaAwD2rBI6cx4DMkK4TK slJ0LuqdPSeqejZWrv2NElk6NmHuqv5GzbTv60td0DHIUWSrtsMMu0w9fLij0OA5fO/B mnUw== X-Received: by 10.112.184.196 with SMTP id ew4mr8974841lbc.17.1447376969005; Thu, 12 Nov 2015 17:09:29 -0800 (PST) Original-Received: by 10.112.63.70 with HTTP; Thu, 12 Nov 2015 17:09:28 -0800 (PST) Original-Received: by 10.112.63.70 with HTTP; Thu, 12 Nov 2015 17:09:28 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: e_Fxa5O85U7eo80qyFq7Flkvrb8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::229 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:194310 Archived-At: --001a11c3ca1e1801fb052461b6ca Content-Type: text/plain; charset=UTF-8 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 --001a11c3ca1e1801fb052461b6ca Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I'm trying to=C2=A0 communicate with a Restful api using= url.el. When it comes to authentication, their documentation simply says t= o 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? <= br> =C2=A0=C2=A0=C2=A0 curl -u user:password https:= //gnu.org

--001a11c3ca1e1801fb052461b6ca--