cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Looking for HTTPs Sample

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 10 Jan 2002 10:02:54 +0100 (MET)

On Wed, 9 Jan 2002, Avi Kavas wrote:

> I'm looking for a simple piece of code (written using CURL library) which
> makes HTTPs request (using POST request). I saw a sample in the /samples
> directory but it requires client side certificate (which I don't really
> need).

Okay, I put together a very simple and quick example that performs a mere
POST operation.

This example uses HTTP, but using HTTPS instead is only a matter of changing
the URL to use https:// instead of http://

        http://curl.haxx.se/lxr/source/docs/examples/http-post.c

As always, feel free to contribute *YOUR* examples and docs to help others.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-01-10