library(http/http_client) with https URLs

Michael Hendricks <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CAFHuXuZ9rW9_=O15tOTOWYvOUCw+W0fghuCbu1BnTw_3=zuwoA@mail.gmail.com>
Is it possible to use http_get/3 and http_post/4 with https URLs?  I've
used them successfully with http URLs, but attempts with https produce
results like these:

1 ?- use_module(library(http/http_client)).
true.
2 ?- use_module(library(http/http_ssl_plugin)).
true.
3 ?- http_get('https://encrypted.google.com', Reply, []).
false.
4 ?- http_get('https://encrypted.google.com:443', Reply, []).
ERROR: Unknown error term: syntax(http_reply_header,end_of_file)

I'm able to make GET requests using http_open/3 but would really like to
use http_client's pleasant interface.

I thought I'd seen discussion about this on the mailing list before, but
can't seem to find it now.  This is SWI-Prolog version 6.3.19 on OS X 10.8.4

Thanks.

-- 
Michael
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.