From owner-freebsd-questions@FreeBSD.ORG Thu Nov 30 20:03:26 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 D78A616A5B4 for ; Thu, 30 Nov 2006 20:03:26 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AACF43CAE for ; Thu, 30 Nov 2006 20:03:11 +0000 (GMT) (envelope-from scrappy@hub.org) Received: from localhost (unknown [200.46.204.184]) by hub.org (Postfix) with ESMTP id 63FB3118B5D5; Thu, 30 Nov 2006 16:03:18 -0400 (AST) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 62504-05; Thu, 30 Nov 2006 16:03:18 -0400 (AST) Received: from ganymede.hub.org (blk-137-79-174.eastlink.ca [24.137.79.174]) by hub.org (Postfix) with ESMTP id EF0AF118B5CD; Thu, 30 Nov 2006 16:03:17 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 168083E75B; Thu, 30 Nov 2006 16:03:21 -0400 (AST) Date: Thu, 30 Nov 2006 16:03:20 -0400 From: "Marc G. Fournier" To: Dan Nelson Message-ID: <751465373B383F16D9729800@ganymede.hub.org> In-Reply-To: <20061130160833.GF69797@dan.emsphone.com> References: <20061130160833.GF69797@dan.emsphone.com> X-Mailer: Mulberry/4.0.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 20:03:26 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --On Thursday, November 30, 2006 10:08:33 -0600 Dan Nelson wrote: > 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. Availability, mostly :( nc seems to be part of the base OS, while curl is an a port ... I'm trying to find a way to use POST to send the bsdstats data out, insted of GET ... Thanks though ... - ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFbzkI4QvfyHIvDvMRAiP4AKDLW9gP4gxQ4HwLoho0l2zEpo+AtgCdGtNP oYCDi83TRONyHfS8NmCT6mo= =StiC -----END PGP SIGNATURE-----