diff --git a/docs/tipsandtricks.html b/docs/tipsandtricks.html
index 1380041..51d1471 100644
--- a/docs/tipsandtricks.html
+++ b/docs/tipsandtricks.html
@@ -293,9 +293,10 @@ record (stringout, "$(DEVICE):clean_2") {
-First you have to send a correctly formatted HTML request.
-Note that this request must contain the full URL like
-"http://server/page" and must be terminated with two newlines.
+First you have to send a correctly formatted HTML header for a GET request.
+Note that this header must contain the full URL like
+"http://server/page" and must be terminated with two
+CR LF sequences ("\r\n\r\n"
or CR LF CR LF
).
The server should be the same as in the
drvAsynIPPortConfigure
command (if not using a http proxy).
@@ -313,17 +314,18 @@ Read the title of a web page.
get_title {
extrainput = ignore;
replyTimeout = 1000;
- out "GET http://\$1\n\n";
+ out "GET http://\$1\r\n\r\n";
in "%+.1/(?im)<title>(.*)<\/title>/";
}
-Terminate the request with two newlines, either explicit like here
-or using an
+Terminate the request with two carriage return + newlines, either explicit
+like here or using an
outTerminator
.
The URI (without http:// but including the web server host name)
-is passed as argument 1 to \$1
.
+is passed as argument 1 to \$1
+in this example.
Note that web servers may be slow, so allow some
replyTimeout
.