Re: using netcat (nc) to POST data to a web server ...
- From: "Marc G. Fournier" <scrappy@xxxxxxx>
- Date: Thu, 30 Nov 2006 16:03:20 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- --On Thursday, November 30, 2006 10:08:33 -0600 Dan Nelson
<dnelson@xxxxxxxxxxxxxxx> 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@xxxxxxx MSN . scrappy@xxxxxxx
Yahoo . yscrappy Skype: hub.org ICQ . 7615664
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
iD8DBQFFbzkI4QvfyHIvDvMRAiP4AKDLW9gP4gxQ4HwLoho0l2zEpo+AtgCdGtNP
oYCDi83TRONyHfS8NmCT6mo=
=StiC
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- References:
- using netcat (nc) to POST data to a web server ...
- From: Marc G. Fournier
- Re: using netcat (nc) to POST data to a web server ...
- From: Dan Nelson
- using netcat (nc) to POST data to a web server ...
- Prev by Date: Re: stop a freebsd server from responding to pinging?
- Next by Date: Re: Netra T1 105 (sparc64) optimization
- Previous by thread: Re: using netcat (nc) to POST data to a web server ...
- Next by thread: Ethereal version for FreeBSD 6.2 RC1
- Index(es):