From fd8996767652dc4e162eddea457155a2411157de Mon Sep 17 00:00:00 2001
From: Ingela Anderton Andin
If the scheme - https is used the ssl application needs to be started.
+If the scheme https is used the ssl application needs to be + started. When https links needs to go through a proxy the + CONNECT method extension to HTTP-1.1 is used to establish a + tunnel and then the connection is upgraded to TLS, + however "TLS upgrade" according to RFC 2817 is not + supported.
Also note that pipelining will only be used if the pipeline
timeout is set, otherwise persistent connections without
--
cgit v1.2.3
From 0047d213e4e345fc04bb492ed877a35d67d86969 Mon Sep 17 00:00:00 2001
From: Ingela Anderton Andin When using ssl, there are currently only one alternative.
- For ssl configuration options see Defaults to ssl properties Used as cacertfile option in ssl:listen/2 see
- Used as certfile option in ssl:listen/2 see
- Used as ciphers option in ssl:listen/2 see
- Used as verify option in ssl:listen/2 see
- Used as depth option in ssl:listen/2 see
- Used together with ssl_password_callback_module
- to retrieve a value to use as password option to ssl:listen/2
- see Used together with ssl_password_callback_function to supply a
- list of arguments to the callback function. If not specified
- the callback function will be assumed to have arity 0. Used together with ssl_password_callback_function
- to retrieve a value to use as password option to ssl:listen/2
- see URL aliasing properties - requires mod_alias
{alias, {"/image", "/ftp/pub/image"}
+ {alias, {"/image", "/ftp/pub/image"}}
and an access to http://your.server.org/image/foo.gif would refer to
the file /ftp/pub/image/foo.gif.
@@ -421,7 +421,7 @@ bytes
by re:replace/3 to produce a path in the local filesystem.
For example:
- {re_write, {"^/[~]([^/]+)(.*)$", "/home/\\1/public\\2"}
+ {re_write, {"^/[~]([^/]+)(.*)$", "/home/\\1/public\\2"}}
and an access to http://your.server.org/~bob/foo.gif would refer to
the file /home/bob/public/foo.gif.
@@ -468,7 +468,7 @@ bytes
scripts. URLs with a path beginning with url-path are mapped to
scripts beginning with directory-filename, for example:
- {script_alias, {"/cgi-bin/", "/web/cgi-bin/"}
+ {script_alias, {"/cgi-bin/", "/web/cgi-bin/"}}
and an access to http://your.server.org/cgi-bin/foo would cause
the server to run the script /web/cgi-bin/foo.
@@ -483,7 +483,7 @@ bytes
scripts. URLs with a path beginning with url-path are mapped to
scripts beginning with directory-filename, for example:
- {script_re_write, {"^/cgi-bin/(\\d+)/", "/web/\\1/cgi-bin/"}
+ {script_re_write, {"^/cgi-bin/(\\d+)/", "/web/\\1/cgi-bin/"}}
and an access to http://your.server.org/cgi-bin/17/foo would cause
the server to run the script /web/17/cgi-bin/foo.
@@ -517,7 +517,7 @@ bytes
the standard CGI PATH_INFO and PATH_TRANSLATED environment
variables.
- {action, {"text/plain", "/cgi-bin/log_and_deliver_text"}
+ {action, {"text/plain", "/cgi-bin/log_and_deliver_text"}}
@@ -532,7 +532,7 @@ bytes
the standard CGI PATH_INFO and PATH_TRANSLATED environment
variables.
- {script, {"PUT", "/cgi-bin/put"}
+ {script, {"PUT", "/cgi-bin/put"}}
@@ -549,7 +549,7 @@ bytes
scheme scripts. A matching URL is mapped into a specific module
and function. For example:
- {erl_script_alias, {"/cgi-bin/example", [httpd_example]}
+ {erl_script_alias, {"/cgi-bin/example", [httpd_example]}}
and a request to
@@ -706,7 +706,7 @@ bytes
For example:
- {allow_from, ["123.34.56.11", "150.100.23"]
+ {allow_from, ["123.34.56.11", "150.100.23"]}
The host 123.34.56.11 and all machines on the 150.100.23
subnet are allowed access.
@@ -719,7 +719,7 @@ bytes
which should be denied access to a given directory.
For example:
- {deny_from, ["123.34.56.11", "150.100.23"]
+ {deny_from, ["123.34.56.11", "150.100.23"]}
The host 123.34.56.11 and all machines on the 150.100.23
subnet are not allowed access.
@@ -835,7 +835,7 @@ bytes
Security properties - requires mod_security
- {security_directory, {path(), [{property(), term()}]}
+ {security_directory, {path(), [{property(), term()}]}}
Here follows the valid properties for security directories
@@ -1067,7 +1067,7 @@ bytes
Called for each request to the Web server.
OldData = list()
- NewData = [{response,{StatusCode,Body}}] | [{response,{response,Head,Body}}] | [{response,{already_sent,Statuscode,Size}]
+ NewData = [{response,{StatusCode,Body}}] | [{response,{response,Head,Body}}] | [{response,{already_sent,Statuscode,Size}}]
StausCode = integer()
Body = io_list() | nobody | {Fun, Arg}
Head = [HeaderOption]
diff --git a/lib/inets/doc/src/httpd_util.xml b/lib/inets/doc/src/httpd_util.xml
index 9f290084d2..9218ee91e2 100644
--- a/lib/inets/doc/src/httpd_util.xml
+++ b/lib/inets/doc/src/httpd_util.xml
@@ -337,10 +337,10 @@
rfc1123_date() -> RFC1123Date
- rfc1123_date({{YYYY,MM,DD},{Hour,Min,Sec}}}) -> RFC1123Date
+ rfc1123_date({{YYYY,MM,DD},{Hour,Min,Sec}}) -> RFC1123Date
Return the current date in RFC 1123 format.
- YYYY = MM = DD = Hour = Min =Sec = integer()
+ YYYY = MM = DD = Hour = Min = Sec = integer()
RFC1123Date = string()
diff --git a/lib/inets/doc/src/mod_alias.xml b/lib/inets/doc/src/mod_alias.xml
index 265a1b8e76..b38be5db28 100644
--- a/lib/inets/doc/src/mod_alias.xml
+++ b/lib/inets/doc/src/mod_alias.xml
@@ -118,7 +118,7 @@
- real_script_name(ConfigDB,RequestURI,ScriptAliases) -> Ret
+ real_script_name(ConfigDB, RequestURI, ScriptAliases) -> Ret
Expand a request uri using ScriptAlias config directives.
ConfigDB = config_db()
@@ -129,7 +129,7 @@
- real_name/3 traverses ScriptAliases ,
+
real_script_name/3 traverses ScriptAliases ,
typically extracted from ConfigDB , and matches each
FakeName with RequestURI . If a match is found
FakeName is replaced with RealName in the
diff --git a/lib/inets/doc/src/notes_history.xml b/lib/inets/doc/src/notes_history.xml
index bd59c1ba47..4162ab97bb 100644
--- a/lib/inets/doc/src/notes_history.xml
+++ b/lib/inets/doc/src/notes_history.xml
@@ -834,7 +834,7 @@
-
[ftp, client] - A new option {progress, {CBmodule,
- CBFunction, InitProgressTerm} has been added to allow
+ CBFunction, InitProgressTerm}} has been added to allow
users to create things such as progress bars in there
GUI's. The option affects ftp:send/[3,4] and
ftp:recv/[3,4].
--
cgit v1.2.3
From 5bf88f6341c8414ce59b0c069b106ed044cf1bc4 Mon Sep 17 00:00:00 2001
From: tomaon
Date: Fri, 2 Aug 2013 12:13:48 +0900
Subject: fix: typo, inets/doc/src/httpd
---
lib/inets/doc/src/httpd.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'lib/inets/doc')
diff --git a/lib/inets/doc/src/httpd.xml b/lib/inets/doc/src/httpd.xml
index e02959f4c1..776d6e439b 100644
--- a/lib/inets/doc/src/httpd.xml
+++ b/lib/inets/doc/src/httpd.xml
@@ -251,14 +251,14 @@
- {max_uri, integer()}
+ {max_uri_size, integer()}
-
Limits the size of the HTTP request URI. By
default there is no limit.
- {max_keep_alive_requests, integer()}
+ {max_keep_alive_request, integer()}
-
The number of request that a client can do on one
connection. When the server has responded to the number of
@@ -632,7 +632,7 @@ bytes
- {error_disk_log, internal | external}
+ {error_disk_log, path()}
-
Defines the filename of the (disk_log(3)) error log file
to be used to log server errors. If the filename does not begin
--
cgit v1.2.3
From b68cc1bd8995e53cec04a37be23bd1709e57bff9 Mon Sep 17 00:00:00 2001
From: Ingela Anderton Andin
Date: Wed, 11 Sep 2013 15:56:31 +0200
Subject: inets: httpc make httpc_cancel_request/[1,2] asynchronous
Conflicts:
lib/inets/src/http_client/httpc_handler.erl
---
lib/inets/doc/src/httpc.xml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
(limited to 'lib/inets/doc')
diff --git a/lib/inets/doc/src/httpc.xml b/lib/inets/doc/src/httpc.xml
index 91685db49f..b08c219603 100644
--- a/lib/inets/doc/src/httpc.xml
+++ b/lib/inets/doc/src/httpc.xml
@@ -4,7 +4,7 @@
- 2004 2012
+ 2004 2014
Ericsson AB. All Rights Reserved.
@@ -440,7 +440,10 @@ apply(Module, Function, [ReplyInfo | Args])
Profile = profile() | pid() (when started stand_alone )
- Cancels an asynchronous HTTP-request.
+ Cancels an asynchronous HTTP-request. Note this does not guarantee
+ that the request response will not be delivered, as it is asynchronous the
+ the request may already have been completed when the cancellation arrives.
+
--
cgit v1.2.3
From 2fe876a18560bdbff1f578c3fe26522f21c2ec54 Mon Sep 17 00:00:00 2001
From: Hans Nilsson
Date: Wed, 13 Nov 2013 15:05:50 +0100
Subject: ftp: Add ftps documentation
---
lib/inets/doc/src/ftp.xml | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
(limited to 'lib/inets/doc')
diff --git a/lib/inets/doc/src/ftp.xml b/lib/inets/doc/src/ftp.xml
index f8f11ec705..ac14d3f274 100644
--- a/lib/inets/doc/src/ftp.xml
+++ b/lib/inets/doc/src/ftp.xml
@@ -547,15 +547,14 @@
Opts = options()
options() = [option()]
option() = start_option() | open_option()
-
start_option() = {verbose, verbose()} | {debug, debug()}
verbose() = boolean() (defaults to false)
debug() = disable | debug | trace (defaults to disable)
-
- open_option() = {ipfamily, ipfamily()} | {port, port()} | {mode, mode()} | {timeout, timeout()} | {dtimeout, dtimeout()} | {progress, progress()}
+ open_option() = {ipfamily, ipfamily()} | {port, port()} | {mode, mode()} | {tls, tls_options()} | {timeout, timeout()} | {dtimeout, dtimeout()} | {progress, progress()}
ipfamily() = inet | inet6 | inet6fb4 (defaults to inet)
port() = integer() > 0 (defaults to 21)
mode() = active | passive (defaults to passive)
+ tls_options() = [ssl:ssloption() ]
timeout() = integer() > 0 (defaults to 60000 milliseconds)
dtimeout() = integer() > 0 | infinity (defaults to infinity)
pogress() = ignore | {module(), function(), initial_data()} (defaults to ignore)
@@ -570,6 +569,9 @@
(without the inets service framework) and
open a session with the FTP server at Host .
+ If the option {tls, tls_options()} is present, the ftp session will be transported over tls (ftps, see RFC 4217). The list tls_options() may be empty. The function ssl:connect/3 is used for establishing both the control connection and the data sessions.
+
+
A session opened in this way, is closed using the
close function.
--
cgit v1.2.3
From 962184a8a808a71dc557ee79c5eb43319f5d9a40 Mon Sep 17 00:00:00 2001
From: Hans Nilsson
Date: Tue, 19 Nov 2013 11:40:56 +0100
Subject: ftp: Add documentation.
---
lib/inets/doc/src/ftp.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'lib/inets/doc')
diff --git a/lib/inets/doc/src/ftp.xml b/lib/inets/doc/src/ftp.xml
index ac14d3f274..c6e37dc539 100644
--- a/lib/inets/doc/src/ftp.xml
+++ b/lib/inets/doc/src/ftp.xml
@@ -569,7 +569,7 @@
(without the inets service framework) and
open a session with the FTP server at Host .
- If the option {tls, tls_options()} is present, the ftp session will be transported over tls (ftps, see RFC 4217). The list tls_options() may be empty. The function ssl:connect/3 is used for establishing both the control connection and the data sessions.
+
If the option {tls, tls_options()} is present, the ftp session will be transported over tls (ftps, see RFC 4217). The list tls_options() may be empty. The function ssl:connect/3 is used for securing both the control connection and the data sessions.
A session opened in this way, is closed using the
--
cgit v1.2.3
From 08e0bce6d028e5315c7f6d3b857fd9246dd8c9f0 Mon Sep 17 00:00:00 2001
From: Hans Nilsson
Date: Tue, 19 Nov 2013 12:09:05 +0100
Subject: ftp: Linking rfc-refs.
---
lib/inets/doc/src/ftp.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'lib/inets/doc')
diff --git a/lib/inets/doc/src/ftp.xml b/lib/inets/doc/src/ftp.xml
index c6e37dc539..b081fabc91 100644
--- a/lib/inets/doc/src/ftp.xml
+++ b/lib/inets/doc/src/ftp.xml
@@ -569,7 +569,8 @@
(without the inets service framework) and
open a session with the FTP server at Host .
- If the option {tls, tls_options()} is present, the ftp session will be transported over tls (ftps, see RFC 4217). The list tls_options() may be empty. The function ssl:connect/3 is used for securing both the control connection and the data sessions.
+
If the option {tls, tls_options()} is present, the ftp session will be transported over tls (ftps, see
+RFC 4217 ). The list tls_options() may be empty. The function ssl:connect/3 is used for securing both the control connection and the data sessions.
A session opened in this way, is closed using the
@@ -817,8 +818,7 @@
Sets the file transfer type to ascii or binary . When
an ftp session is opened, the default transfer type of the
server is used, most often ascii , which is the default
- according to RFC 959.
-
+ according to RFC 959 .
@@ -945,7 +945,7 @@
SEE ALSO
file, filename, J. Postel and J. Reynolds: File Transfer Protocol
- (RFC 959).
+ (RFC 959 ).
--
cgit v1.2.3
From 60e0f4cce2f9caeb60ae44cbe18b3eb3ca75a5a8 Mon Sep 17 00:00:00 2001
From: Hans Nilsson
Date: Tue, 19 Nov 2013 16:05:24 +0100
Subject: ftp,ssl: Fixes broken type link (ssloption).
---
lib/inets/doc/src/ftp.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'lib/inets/doc')
diff --git a/lib/inets/doc/src/ftp.xml b/lib/inets/doc/src/ftp.xml
index b081fabc91..20698d8dbc 100644
--- a/lib/inets/doc/src/ftp.xml
+++ b/lib/inets/doc/src/ftp.xml
@@ -554,7 +554,7 @@
ipfamily() = inet | inet6 | inet6fb4 (defaults to inet)
port() = integer() > 0 (defaults to 21)
mode() = active | passive (defaults to passive)
- tls_options() = [ssl:ssloption() ]
+ tls_options() = [ssl:ssloption() ]
timeout() = integer() > 0 (defaults to 60000 milliseconds)
dtimeout() = integer() > 0 | infinity (defaults to infinity)
pogress() = ignore | {module(), function(), initial_data()} (defaults to ignore)
--
cgit v1.2.3