|
|
@ -8,8 +8,11 @@ |
|
|
|
|
|
|
|
<h1>Module ibrowse</h1> |
|
|
|
The ibrowse application implements an HTTP 1.1 client. |
|
|
|
<p>Copyright © 2005-2007 Chandrashekhar Mullaparthi</p> |
|
|
|
<ul><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul> |
|
|
|
<p><b>Version:</b> 1.2.7</p> |
|
|
|
<p><b>Behaviours:</b> <a href="gen_server.html"><tt>gen_server</tt></a>.</p> |
|
|
|
<p><b>Authors:</b> Chandrashekhar Mullaparthi (<a href="mailto:chandrashekhar dot mullaparthi at gmail dot com"><tt>chandrashekhar dot mullaparthi at gmail dot com</tt></a>).</p> |
|
|
|
|
|
|
|
<h2><a name="description">Description</a></h2><p>The ibrowse application implements an HTTP 1.1 client. This |
|
|
|
module implements the API of the HTTP client. There is one named |
|
|
@ -136,10 +139,18 @@ send_req/4, send_req/5, send_req/6. |
|
|
|
|
|
|
|
<h3><a name="send_req-5">send_req/5</a></h3> |
|
|
|
<p><tt>send_req(Url::string(), Headers::<a href="#type-headerList">headerList()</a>, Method::<a href="#type-method">method()</a>, Body::<a href="#type-body">body()</a>, Options::<a href="#type-optionList">optionList()</a>) -> <a href="#type-response">response()</a></tt> |
|
|
|
<ul><li><tt><a name="type-optionList">optionList()</a> = [<a href="#type-option">option()</a>]</tt></li><li><tt><a name="type-option">option()</a> = {max_sessions, integer()} | {max_pipeline_size, integer()} | {trace, <a href="#type-boolean">boolean()</a>} | {is_ssl, <a href="#type-boolean">boolean()</a>} | {ssl_options, [SSLOpt]} | {pool_name, atom()} | {proxy_host, string()} | {proxy_port, integer()} | {proxy_user, string()} | {proxy_password, string()} | {use_absolute_uri, <a href="#type-boolean">boolean()</a>} | {basic_auth, {<a href="#type-username">username()</a>, <a href="#type-password">password()</a>}} | {cookie, string()} | {content_length, integer()} | {content_type, string()} | {save_response_to_file, <a href="#type-boolean">boolean()</a>} | {stream_to, <a href="#type-process">process()</a>} | {http_vsn, {MajorVsn, MinorVsn}} | {transfer_encoding, {chunked, ChunkSize}}</tt></li><li><tt><a name="type-process">process()</a> = pid() | atom()</tt></li><li><tt><a name="type-username">username()</a> = string()</tt></li><li><tt><a name="type-password">password()</a> = string()</tt></li><li><tt>SSLOpt = term()</tt></li><li><tt>ChunkSize = integer()</tt></li></ul></p> |
|
|
|
<ul><li><tt><a name="type-optionList">optionList()</a> = [<a href="#type-option">option()</a>]</tt></li><li><tt><a name="type-option">option()</a> = {max_sessions, integer()} | {max_pipeline_size, integer()} | {trace, <a href="#type-boolean">boolean()</a>} | {is_ssl, <a href="#type-boolean">boolean()</a>} | {ssl_options, [SSLOpt]} | {pool_name, atom()} | {proxy_host, string()} | {proxy_port, integer()} | {proxy_user, string()} | {proxy_password, string()} | {use_absolute_uri, <a href="#type-boolean">boolean()</a>} | {basic_auth, {<a href="#type-username">username()</a>, <a href="#type-password">password()</a>}} | {cookie, string()} | {content_length, integer()} | {content_type, string()} | {save_response_to_file, <a href="#type-boolean">boolean()</a>} | {stream_to, <a href="#type-process">process()</a>} | {http_vsn, {MajorVsn, MinorVsn}} | {host_header, string()} | {transfer_encoding, {chunked, ChunkSize}}</tt></li><li><tt><a name="type-process">process()</a> = pid() | atom()</tt></li><li><tt><a name="type-username">username()</a> = string()</tt></li><li><tt><a name="type-password">password()</a> = string()</tt></li><li><tt>SSLOpt = term()</tt></li><li><tt>ChunkSize = integer()</tt></li></ul></p> |
|
|
|
<p>Same as send_req/4. |
|
|
|
For a description of SSL Options, look in the ssl manpage. If the |
|
|
|
HTTP Version to use is not specified, the default is 1.1</p> |
|
|
|
HTTP Version to use is not specified, the default is 1.1. |
|
|
|
<br> |
|
|
|
<p>The <code>host_header</code> is useful in the case where ibrowse is |
|
|
|
connecting to a component such as <a href="http://www.stunnel.org">stunnel</a> which then sets up a |
|
|
|
secure connection to a webserver. In this case, the URL supplied to |
|
|
|
ibrowse must have the stunnel host/port details, but that won't |
|
|
|
make sense to the destination webserver. This option can then be |
|
|
|
used to specify what should go in the <code>Host</code> header in |
|
|
|
the request.</p></p> |
|
|
|
|
|
|
|
<h3><a name="send_req-6">send_req/6</a></h3> |
|
|
|
<p><tt>send_req(Url, Headers::<a href="#type-headerList">headerList()</a>, Method::<a href="#type-method">method()</a>, Body::<a href="#type-body">body()</a>, Options::<a href="#type-optionList">optionList()</a>, Timeout) -> <a href="#type-response">response()</a></tt> |
|
|
|