caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ocamlnet question: get with arbitrary header
@ 2018-03-21 19:29 Alan Schmitt
  2018-03-22 19:55 ` Gerd Stolpmann
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Schmitt @ 2018-03-21 19:29 UTC (permalink / raw)
  To: OCaml Mailing List

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

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

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2018-02: 408.35, 2017-02: 406.42

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-26 12:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-21 19:29 [Caml-list] ocamlnet question: get with arbitrary header Alan Schmitt
2018-03-22 19:55 ` Gerd Stolpmann
2018-03-26  5:57   ` Alan Schmitt
2018-03-26 12:04     ` Gerd Stolpmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).