From owner-freebsd-questions@FreeBSD.ORG Thu Nov 30 16:23:17 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE0EE16A4C2 for ; Thu, 30 Nov 2006 16:23:17 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9056643EAA for ; Thu, 30 Nov 2006 16:08:32 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id kAUG8Xxm005412; Thu, 30 Nov 2006 10:08:33 -0600 (CST) (envelope-from dan) Date: Thu, 30 Nov 2006 10:08:33 -0600 From: Dan Nelson To: "Marc G. Fournier" Message-ID: <20061130160833.GF69797@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 6.2-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-questions@freebsd.org Subject: Re: using netcat (nc) to POST data to a web server ... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2006 16:23:17 -0000 In the last episode (Nov 30), Marc G. Fournier said: > using netcat (nc) to POST data to a web server ... > > Does anyone have an example of this? I've searched google, and am > finding nothing other then that it can be done ... I'd recommend using curl. It has options for sending HTTP POST data in a couple of different formats. With nc, you'll have to fabricate the entire request and pipe it in. Easy enough to determine the format by tcpdumping a browser session, but curl has done the work and lets you do error checking on the response. -- Dan Nelson dnelson@allantgroup.com