From: Florian Weimer <fw@deneb.enyo.de>
To: Martin Chabr <martin_chabr@yahoo.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Get a page from the Web
Date: Mon, 07 Nov 2005 23:10:07 +0100 [thread overview]
Message-ID: <8764r4xg74.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: <20051107211906.14100.qmail@web26810.mail.ukl.yahoo.com> (Martin Chabr's message of "Mon, 7 Nov 2005 22:19:06 +0100 (CET)")
* Martin Chabr:
> import urllib
> URL = "http://www.ibm.com"
> url = urllib.urlopen(URL)
> html = url.read()
You could use the Netclient library:
let s = Http_client.Convenience.http_get "http://www.ibm.com" in
output_string stdout s
(Compile with: ocamlfind ocamlc -package netclient -linkpkg file.ml)
next prev parent reply other threads:[~2005-11-07 22:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-07 21:19 Martin Chabr
2005-11-07 21:35 ` [Caml-list] " Karl Zilles
2005-11-07 22:10 ` Florian Weimer [this message]
2005-11-08 10:40 ` Richard Jones
2005-11-09 18:13 ` Ant: " Martin Chabr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8764r4xg74.fsf@mid.deneb.enyo.de \
--to=fw@deneb.enyo.de \
--cc=caml-list@inria.fr \
--cc=martin_chabr@yahoo.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox