cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: how to Post data WITHOUT form?

From: Andre Guibert de Bruet <andy_at_siliconlandmark.com>
Date: Thu, 1 Nov 2007 16:06:39 -0400

On Nov 1, 2007, at 3:33 PM, Tigersoft Development Group wrote:

> I'm writing a C program which needs to send raw data through HTTP
> POST. do you have any example (with netcat too)?

Please don't top post.

The concept of "raw data" is fuzzy when it comes to HTTP. If you are
trying to write a program that does HTTP POST, then you are definitely
looking for libcurl. There are plenty of examples that you can work
off of. Have a look at: docs/examples/http-post.c

Regards,

/* Andre Guibert de Bruet * 436f 6465 2070 6f65 742e 2042 6974 206a */
/* Code poet / Sysadmin * 6f63 6b65 792e 2053 7973 4164 6d69 6e2e */
/* GSM: +1 734 846 8758 * 2055 4e49 5820 736c 6575 7468 2e00 0000 */
/* WWW: siliconlandmark.com * C/C++, Java, Perl, PHP, SQL, XHTML, XML */
Received on 2007-11-01