From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id E6CC9823D7 for ; Wed, 21 Mar 2018 20:29:20 +0100 (CET) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=Pass smtp.pra=alan.schmitt@polytechnique.org; spf=Pass smtp.mailfrom=SRS0=Kw4P=GL=polytechnique.org=alan.schmitt@bounces.m4x.org; spf=Pass smtp.helo=postmaster@mx1.polytechnique.org Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of alan.schmitt@polytechnique.org designates 129.104.30.34 as permitted sender) identity=pra; client-ip=129.104.30.34; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="SRS0=Kw4P=GL=polytechnique.org=alan.schmitt@bounces.m4x.org"; x-sender="alan.schmitt@polytechnique.org"; x-conformance=sidf_compatible; x-record-type="spf2.0" Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of SRS0=Kw4P=GL=polytechnique.org=alan.schmitt@bounces.m4x.org designates 129.104.30.34 as permitted sender) identity=mailfrom; client-ip=129.104.30.34; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="SRS0=Kw4P=GL=polytechnique.org=alan.schmitt@bounces.m4x.org"; x-sender="SRS0=Kw4P=GL=polytechnique.org=alan.schmitt@bounces.m4x.org"; x-conformance=sidf_compatible; x-record-type="spf2.0" Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of postmaster@mx1.polytechnique.org designates 129.104.30.34 as permitted sender) identity=helo; client-ip=129.104.30.34; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="SRS0=Kw4P=GL=polytechnique.org=alan.schmitt@bounces.m4x.org"; x-sender="postmaster@mx1.polytechnique.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" IronPort-PHdr: =?us-ascii?q?9a23=3A4qp8lhJzzDSh65wDL9mcpTZWNBhigK39O0sv0rFi?= =?us-ascii?q?tYgeIvrxwZ3uMQTl6Ol3ixeRBMOHs6kC07KempujcFRI2YyGvnEGfc4EfD4+ou?= =?us-ascii?q?JSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgpp?= =?us-ascii?q?POT1HZPZg9iq2+yo9JDffwtFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+?= =?us-ascii?q?RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLd?= =?us-ascii?q?QgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QKsqUjq+8ahkVB7oiD?= =?us-ascii?q?8GNzEn9mHXltdwh79frB64uhBz35LYbISTOfFjfK3SYMkaSHJBUMhPSiJPDICy?= =?us-ascii?q?YIUAAOUdJutYoJXxqkEUoBeiHwShBuXiwSJIiH/s2q061vwsHB3C3AM6GdIFrW?= =?us-ascii?q?nao8n1NKcXUOC10LXIxijEYvxM3Tfy8o7Ifgo6of6QXbJwdMvRyVUzFw7ellWQ?= =?us-ascii?q?rojlPjOJ1usTr2eb7+xgVeO2i246tQ59uD+vxt0jioTQgI8e11PK9T1hzYooO9?= =?us-ascii?q?G1TFR3bcO4HJZfrS2XOZd6TtksTmxnoCo3yaMKtYSlcCQU0pgqxwDTZ+aZf4SU?= =?us-ascii?q?/B7uUvuaLy1ii3J/Yr2/gg6/8Ui+xe34Ucm5yFNKryVYntXWrnAN0BjT68ibSv?= =?us-ascii?q?Rj4kih2TCP1wHK6uFZP084j63bK4QuwrIol5oTt1rMHjPulUnrkqObcl8o9vW0?= =?us-ascii?q?5+noeLnrqIOQO5V6hwzxKqgun9awAeU8MggARWib/uG82aX+80PlXbtGkuU7nK?= =?us-ascii?q?zXsZ3VP8oWvq+3DQlN34Y77Ba/Czen0MgGknYbLFJFfhOHj5H0O17QOvz4Cu2/?= =?us-ascii?q?g1u0nThxw/DJJLvhDo/WLnffkLfheLd961JAyAco1t9f4I9UCrcdL/3tQU/9rt?= =?us-ascii?q?nYAxA2MgCuxObnEtp92psEWW2TGq+ZLL/SsViQ6+0zOeaMYYsVtC/5K/gk/P7u?= =?us-ascii?q?kWQ0mUQdfKmsxZsYcmq0HvVgI0WDYHrjmM0NEWkQvll2cOu/r3aLVDobQn+zW6?= =?us-ascii?q?M66XkfCZm6RdPIT4WpxbiAxzuTH5tMZ2kABEraQlnycIDRcvMFbmqpKc9kkyAY?= =?us-ascii?q?HeyoT4YnkwqltAr716ZPNu3Q6zEVvpLl1cFo6qvUjx5kpm88NNiUz2zYFzI8pW?= =?us-ascii?q?gPXTJjmfkn+RUsmGfG6rBxhrljLfIW4vpIVgkgMpuFkL5wDM30UQ/aONLVWBCh?= =?us-ascii?q?WNr0WGhtHOJ0+McHZgNGI/vnlgrKhnv4G7gRhqCGD5wy87vB0j72Pckvki+bhp?= =?us-ascii?q?lktEEvR450DUPjhqN78FKIVYvZygOBkKK7aakX3CjM7XqOi22UsxMBXQ=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0ApAADRsbJahyIeaIFdHgEGDIQecIQEi?= =?us-ascii?q?F6MLYMBkyiCEQOIXRoGAQUvGAECAQEBAQEBAQEBEgEBAQoLCQgoL4I4JAGCcoE?= =?us-ascii?q?SEw4CEQEEKSCFIQQBrGCCIIRZg26BbA+HQ4FTQIwPglQDh06QbQmBeo5vgTuKQ?= =?us-ascii?q?JA2gSYcggozGjCDBpBOkGMDAQE?= X-IPAS-Result: =?us-ascii?q?A0ApAADRsbJahyIeaIFdHgEGDIQecIQEiF6MLYMBkyiCEQO?= =?us-ascii?q?IXRoGAQUvGAECAQEBAQEBAQEBEgEBAQoLCQgoL4I4JAGCcoESEw4CEQEEKSCFI?= =?us-ascii?q?QQBrGCCIIRZg26BbA+HQ4FTQIwPglQDh06QbQmBeo5vgTuKQJA2gSYcggozGjC?= =?us-ascii?q?DBpBOkGMDAQE?= X-IronPort-AV: E=Sophos;i="5.48,341,1517871600"; d="asc'?scan'208";a="319314497" Received: from mx1.polytechnique.org ([129.104.30.34]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2018 20:29:20 +0100 Received: from top.local (cpc131788-brnt3-2-0-cust201.know.cable.virginm.net [82.22.52.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id CA84A5646D4 for ; Wed, 21 Mar 2018 20:29:13 +0100 (CET) From: Alan Schmitt To: OCaml Mailing List Date: Wed, 21 Mar 2018 19:29:11 +0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (darwin) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Wed Mar 21 20:29:14 2018 +0100 (CET)) X-Spam-Flag: No, tests=bogofilter, spamicity=0.000001, queueID=1AB0D5646D2 X-Org-Mail: alan.schmitt.1995@polytechnique.org Subject: [Caml-list] ocamlnet question: get with arbitrary header --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I'm writing a small tool to fetch articles from wallabag, and as part of the protocol I first need to get a token, then in subsequent calls I need to provide it as a http header. I've been using Nethttp_client.Convenience till now, but I don't see a way to specify an http header. I looked at the documentation for Nethttp_client, and I'm not seeing it either. Is there a way to set a header for a GET request to Authorization with value Bearer foobar? Thanks, Alan --=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82, Mauna Loa Obs. 2018-02: 408.35, 2017-02: = 406.42 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEzBAEBCgAdFiEE6lXof/BsSVW56ZmGBA0KO07S5ccFAlqysogACgkQBA0KO07S 5cdF0QgAiCiSOX34bPIWjpxP0pnbj8xj8p+NUb0lsPTA2PLIgg/5NR3GKlW5b2oz TU5oyzMwcNw9DH2rCwVCgiRTz/BR9Mk9L+vlG6oB5g+8Z2I1sG/g9zQm6za52RyJ ozqrzty/dYyOHE/ZXxHBNlI2Y0eBvGb2e3MQYFPi7qeQm+VEFxqlon8wiTY65dkF 2GYrXdbAGYcVJrMd/+o2S/n2s4KWB4yb7DxRSDfU4tMHZZdrVVq2FaRsb9as8f2N SrU2XJpcxZaXLq7QOyxT7RdJx9CeDax654H5mrzMg/FhacH5TsUlk0/x0pUfGIyH t6wcarYakFN6VViJCtgtr2YqeThg6A== =drcY -----END PGP SIGNATURE----- --=-=-=--