:- use_module(library(http/http_client)). [det]http_read_data(+Request, 
-Data, +Options)
[det]http_read_data(+Request, 
-Data, +Options)to(Format) option or based on the Content-type 
in the Request. The following options are supported:
stream(+WriteStream)) Append the content of the message 
to Streamlibrary(http/http_multipart_plugin) and apply to processing
multipart/form-data content.Without plugins, this predicate handles
Name=Value terms.| Request | is a parsed HTTP request as returned 
by
http_read_request/2 or 
available from the HTTP server's request dispatcher. Request 
must contain a term input(In)that provides the input 
stream from the HTTP server. |