cURL / Mailing Lists / curl-library / Single Mail

curl-library

sending data-blocks with non-POST requests

From: Steve Marx <ignatz_at_hawaii.rr.com>
Date: Sun, 27 Jan 2002 20:46:24 -1000

Hello,

I am having a problem that is preventing me from replacing our
current system
(http_lib) with libcurl on our multi-server systems.

Our servers contact each other with various non-standard methods (eg
COPY) which
also contain information on the Content area of the request (like a
POST). The only way
to implement this with libcurl seems to be to use
CURLOPT_POSTFIELDS. But then when
I set the method via CURLOPT_CUSTOMREQUEST, the "POST" data does not
get sent.

I have experimented with various approaches including using
curl_formadd() and trying
to send the data up through a CURLOPT_READFUNCTION. None successful.

Does anyone have any suggestions?
Thanks,
  Steve
Received on 2002-01-28