mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
Use "printf" instead of "echo -n" in an example because it
should be more compatible for most shells that are out there. I contacted Philip Guenther at OpenBSD about this PR and he corrected the issue in their tree pretty fast. PR: docs/142243 Submitted by: Yasir (yasir27 at mail dot ru) Obtained from: OpenBSD Discussed with: delphij MFC after: 7 days
This commit is contained in:
parent
b739a509f2
commit
bc6940585f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210511
@ -27,7 +27,7 @@
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd April 15, 2010
|
||||
.Dd July 3, 2010
|
||||
.Dt NC 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -340,7 +340,7 @@ when it might be necessary to verify what data a server is sending
|
||||
in response to commands issued by the client.
|
||||
For example, to retrieve the home page of a web site:
|
||||
.Bd -literal -offset indent
|
||||
$ echo -n "GET / HTTP/1.0\er\en\er\en" | nc host.example.com 80
|
||||
$ printf "GET / HTTP/1.0\er\en\er\en" | nc host.example.com 80
|
||||
.Ed
|
||||
.Pp
|
||||
Note that this also displays the headers sent by the web server.
|
||||
|
Loading…
Reference in New Issue
Block a user