From d678ee003cd02d3cdffabfd13cc96f8d493dbf0d Mon Sep 17 00:00:00 2001
From: Ingela Anderton Andin
Date: Fri, 26 Nov 2010 11:02:15 +0100
Subject: URL-encoding - add support in client and more usage in server. Also
added missing include directory.
---
lib/inets/doc/src/http_client.xml | 4 ++--
lib/inets/doc/src/httpc.xml | 13 +++++++++----
lib/inets/doc/src/httpd.xml | 12 ++++++++----
3 files changed, 19 insertions(+), 10 deletions(-)
(limited to 'lib/inets/doc')
diff --git a/lib/inets/doc/src/http_client.xml b/lib/inets/doc/src/http_client.xml
index ea8053cafa..672ea3fa98 100644
--- a/lib/inets/doc/src/http_client.xml
+++ b/lib/inets/doc/src/http_client.xml
@@ -1,4 +1,4 @@
-
+
@@ -57,7 +57,7 @@
[{inets, [{services, [{httpc, PropertyList}]}]}]
For valid properties see
- httpc(3).
+ httpc(3).
diff --git a/lib/inets/doc/src/httpc.xml b/lib/inets/doc/src/httpc.xml
index 9c8df28fec..c20358178b 100644
--- a/lib/inets/doc/src/httpc.xml
+++ b/lib/inets/doc/src/httpc.xml
@@ -1,4 +1,4 @@
-
+
@@ -172,7 +172,8 @@ ssl_options() = {verify, code()} |
{autoredirect, boolean()} |
{proxy_auth, {userstring(), passwordstring()}} |
{version, http_version()} |
- {relaxed, boolean()}
+ {relaxed, boolean()} |
+ {url_encode, boolean()}
timeout() = integer() >= 0 | infinity
Options = options()
options() = [option()]
@@ -276,6 +277,11 @@ ssl_options() = {verify, code()} |
Defaults to false.
+
+ -
+
Will apply Percent-encoding, also known as URL encoding on the URL.
+ Defaults to false.
+
Option (option()) details:
@@ -342,7 +348,7 @@ ssl_options() = {verify, code()} |
Socket options to be used for this and subsequent
request(s).
Overrides any value set by the
- set_options
+ set_options
function.
Note that the validity of the options are not
checked in any way.
@@ -632,4 +638,3 @@ apply(Module, Function, [ReplyInfo | Args])
-
diff --git a/lib/inets/doc/src/httpd.xml b/lib/inets/doc/src/httpd.xml
index 847605fe93..62f4e18f82 100644
--- a/lib/inets/doc/src/httpd.xml
+++ b/lib/inets/doc/src/httpd.xml
@@ -1,4 +1,4 @@
-
+
@@ -421,7 +421,7 @@ bytes
Beware of trailing space in Replacement that will be used.
If you must have a space in Re use e.g the character encoding
- \040
see re(3).
+ \040
see re(3).
{directory_index, [string()]}
@@ -931,6 +931,10 @@ bytes
connection
}).
+
+ To acess the record in your callback-module use
+ -include_lib("inets/include/httpd.hrl").
+
The fields of the mod record has the following meaning:
@@ -978,10 +982,10 @@ bytes
parsed_header contains all HTTP header fields from the
HTTP-request stored in a list as key-value tuples. See RFC 2616
for a listing of all header fields. For example the date field
- would be stored as: {"date","Wed, 15 Oct 1997 14:35:17 GMT"}.
+ would be stored as: {"date","Wed, 15 Oct 1997 14:35:17 GMT"} .
RFC 2616 defines that HTTP is a case insensitive protocol and
the header fields may be in lower case or upper case. Httpd will
- ensure that all header field names are in lower case. .
+ ensure that all header field names are in lower case.
entity_body
- The Entity-Body as defined
--
cgit v1.2.3