From b5bcd9d7fe9dfb04cc2a5c47d6dceef42335b6c1 Mon Sep 17 00:00:00 2001 From: jmc <> Date: Sun, 17 Jul 2005 19:18:47 +0000 Subject: oops... .Dl does not like to be inundated with args, and my last commit just exceeded the happy number - use a display instead. --- src/usr.bin/nc/nc.1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index 19dcad5d5f..773de16135 100644 --- a/src/usr.bin/nc/nc.1 +++ b/src/usr.bin/nc/nc.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: nc.1,v 1.39 2005/07/17 19:15:38 jmc Exp $ +.\" $OpenBSD: nc.1,v 1.40 2005/07/17 19:18:47 jmc Exp $ .\" .\" Copyright (c) 1996 David Sacerdote .\" All rights reserved. @@ -290,8 +290,9 @@ It can aid in troubleshooting, 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: -.Pp -.Dl $ echo -n \&"GET / HTTP/1.0\er\en\er\en\&" | nc host.example.com 80 +.Bd -literal -offset indent +$ echo -n "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. They can be filtered, using a tool such as -- cgit v1.2.3-55-g6feb