Index: GTest.java
===================================================================
RCS file: /home/cvspublic/jakarta-watchdog-4.0/src/tools/org/apache/tomcat/task/GTest.java,v
retrieving revision 1.13
diff -u -r1.13 GTest.java
--- GTest.java	18 Jan 2002 18:02:32 -0000	1.13
+++ GTest.java	21 Jan 2002 05:58:43 -0000
@@ -797,7 +797,7 @@
 			         new OutputStreamWriter( socket.getOutputStream() ) ) );
 
         try {
-            pw.println( request );
+            pw.print( request + "\r\n");
 
             // Now sending any specified request headers
             if ( !requestHeaders.isEmpty() ) {
@@ -812,7 +812,7 @@
 			            sb.append( headerKey );
 			            sb.append( ": " );
 			            sb.append( value[ i ] );
-			            pw.println( sb.toString() );
+			            pw.print( sb.toString() + "\r\n" );
 			            if ( debug > 0 ) {
 			                System.out.println( " REQUEST HEADER: " + sb.toString() );
 			            }
@@ -834,7 +834,7 @@
                             System.out.println( " Sending Cookie Header:: " + cookieHeader );
                         }
 
-                        pw.println( cookieHeader );
+                        pw.print( cookieHeader + "\r\n" );
                     }
                 }
 
@@ -855,15 +855,15 @@
                 if ( debug > 0 ) {
                     System.out.println( " REQUEST HEADER: Content-Length: " + length );
                 }
-                pw.println( "Content-Length: " + length );
+                pw.print( "Content-Length: " + length + "\r\n" );
             }
 
             if ( request.indexOf( "HTTP/1." ) > -1 )
-                pw.println( "" );
+                pw.print( "\r\n" );
 
             if ( content != null ) {
                 pw.print( content );
-                // XXX no /n at the end -see HTTP specs!
+                // XXX no CRLF at the end -see HTTP specs!
             }
 
             pw.flush();
